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
..
2014-05-14 07:36:00 +00:00
2014-05-12 22:01:52 +00:00
2014-05-16 05:48:05 +00:00
2014-05-15 23:24:09 +00:00
2014-05-16 06:03:26 +00:00
2014-05-12 22:01:52 +00:00
2014-05-16 20:49:50 +00:00
2014-05-16 20:49:50 +00:00
2014-05-12 22:01:52 +00:00
2014-05-13 16:22:56 +00:00
2014-05-16 07:59:40 +00:00
2014-05-16 05:48:05 +00:00
2014-05-12 22:01:52 +00:00
2014-05-15 23:24:09 +00:00
2014-05-14 13:40:46 +00:00
2014-05-14 07:36:00 +00:00
2014-05-12 22:01:52 +00:00
2014-05-15 23:24:09 +00:00
2014-05-16 08:29:17 +00:00
2014-05-16 18:03:51 +00:00
2014-05-13 00:03:04 +00:00
2014-05-16 16:03:56 +00:00
2014-04-05 05:39:17 +00:00
2014-05-12 22:01:52 +00:00
2014-05-13 16:22:56 +00:00
2014-05-13 16:22:56 +00:00
2014-05-12 22:01:52 +00:00
2014-05-16 05:48:05 +00:00
2014-05-15 19:00:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-14 14:18:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-16 05:48:05 +00:00
2014-05-12 22:01:52 +00:00
2014-05-16 08:29:17 +00:00
2014-05-13 13:07:59 +00:00
2014-05-14 07:36:00 +00:00
2014-05-12 22:01:52 +00:00
2014-05-14 07:36:00 +00:00
2014-05-14 20:04:35 +00:00
2014-05-16 16:03:56 +00:00
2014-04-09 07:59:43 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-15 23:24:09 +00:00
2014-05-12 22:01:52 +00:00
2014-05-15 09:56:02 +00:00
2014-05-12 22:01:52 +00:00
2014-05-16 05:48:05 +00:00
2014-05-16 05:48:05 +00:00
2014-05-16 05:48:05 +00:00
2014-05-16 06:06:52 +00:00
2014-05-15 23:24:09 +00:00
2014-05-05 21:23:48 +00:00
2014-05-16 05:48:05 +00:00
2014-05-13 16:22:56 +00:00
2014-05-16 01:48:25 +00:00
2014-05-16 05:48:05 +00:00
2014-05-16 05:48:05 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00