Commit Graph

5 Commits

Author SHA1 Message Date
Dmitri Hrybenko
f51ebe8444 stdlib/Assert: fix typo in internal API name
Swift SVN r18436
2014-05-19 22:47:57 +00:00
Dmitri Hrybenko
bbc6a92a4c stdlib/Assert: don't print stdlib filename and line number in stdlib traps
rdar://16958193


Swift SVN r18431
2014-05-19 21:37:51 +00:00
Arnold Schwaighofer
ddb874e045 Rename _isDebug and friends to _isDebugAssertConfiguration
Really we want those nullary functions be computed properties using enums.

  var _assertConfiguration : _AssertConfiguration {
    let assertConfig = Int32(Builtin.assert_configuration())
    if assertConfig == 0 {
      return .Debug
    }
    if assertConfig == 1 {
      return .Release
    }
    return .Fast
  }

  if _assertConfiguration == .Debug {
    _fatal_error_message("assertion failed", message, file, line)
  }

In my tests the enums were not optimized away. So for the short term leave
these functions as nullary functions.

Swift SVN r18211
2014-05-16 20:49:50 +00:00
Ted Kremenek
fad874708e Adjust test cases.
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Dmitri Hrybenko
8df5ab7998 stdlib/core/Assert*: prevent recursive assertions
Swift SVN r5935
2013-07-01 18:20:36 +00:00