File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,21 @@ internal func valueOrErrno<I: FixedWidthInteger>(
38
38
39
39
// Run a precondition for debug client builds
40
40
internal func _debugPrecondition(
41
- _ condition: @autoclosure ( ) -> Bool , _ message: StaticString = StaticString ( ) ,
41
+ _ condition: @autoclosure ( ) -> Bool ,
42
+ _ message: StaticString = StaticString ( ) ,
42
43
file: StaticString = #file, line: UInt = #line
43
44
) {
44
45
// Only check in debug mode.
45
- if _slowPath ( _isDebugAssertConfiguration ( ) ) { precondition ( condition ( ) ) }
46
+ if _slowPath ( _isDebugAssertConfiguration ( ) ) {
47
+ precondition (
48
+ condition ( ) , String ( describing: message) , file: file, line: line)
49
+ }
46
50
}
47
51
48
52
extension OpaquePointer {
49
- internal var _isNULL : Bool { OpaquePointer ( bitPattern: Int ( bitPattern: self ) ) == nil }
53
+ internal var _isNULL : Bool {
54
+ OpaquePointer ( bitPattern: Int ( bitPattern: self ) ) == nil
55
+ }
50
56
}
51
57
52
58
extension Sequence {
You can’t perform that action at this time.
0 commit comments