You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This overload of `callAsFunction(_:_:)` helps the compiler disambiguate
78
-
/// string values when they do _not_ need to be implicitly cast to C strings
79
-
/// or other pointer types. Without this overload, all instances of conforming
80
-
/// types end up being cast to pointers before being compared (etc.), which
81
-
/// produces incorrect results.
66
+
/// This overload of `callAsFunction()` is used when a string is passed to
67
+
/// allow for the correct handling of implicit C string conversion after it
68
+
/// returns. For more information about implicit type conversions performed by
69
+
/// the Swift compiler, see [here](https://developer.apple.com/documentation/swift/calling-functions-with-pointer-parameters#Pass-a-Constant-Pointer-as-a-Parameter).
82
70
///
83
71
/// - Warning: This function is used to implement the `#expect()` and
/// Convert some pointer to another pointer type and capture information about
90
-
/// it for use if the expectation currently being evaluated fails.
77
+
/// Capture an optional string for use if the expectation currently being
78
+
/// evaluated fails.
91
79
///
92
80
/// - Parameters:
93
-
/// - value: The pointer to cast.
81
+
/// - value: The value to pass through.
94
82
/// - id: A value that uniquely identifies the represented expression in the
95
83
/// context of the expectation currently being evaluated.
96
84
///
97
-
/// - Returns: `value`, cast to another type of pointer.
85
+
/// - Returns: `value`, verbatim.
98
86
///
99
-
/// This overload of `callAsFunction(_:_:)` handles the implicit conversions
100
-
/// between various pointer types that are normally provided by the compiler.
87
+
/// This overload of `callAsFunction()` is used when an optional string is
88
+
/// passed to allow for the correct handling of implicit C string conversion
89
+
/// after it returns. For more information about implicit type conversions
90
+
/// performed by the Swift compiler, see [here](https://developer.apple.com/documentation/swift/calling-functions-with-pointer-parameters#Pass-a-Constant-Pointer-as-a-Parameter).
101
91
///
102
92
/// - Warning: This function is used to implement the `#expect()` and
/// Capture an array for use if the expectation currently being evaluated
100
+
/// fails.
101
+
///
102
+
/// - Parameters:
103
+
/// - value: The value to pass through.
104
+
/// - id: A value that uniquely identifies the represented expression in the
105
+
/// context of the expectation currently being evaluated.
106
+
///
107
+
/// - Returns: `value`, verbatim.
108
+
///
109
+
/// This overload of `callAsFunction()` is used when an array is passed to
110
+
/// allow for the correct handling of implicit C array conversion after it
111
+
/// returns. For more information about implicit type conversions performed by
112
+
/// the Swift compiler, see [here](https://developer.apple.com/documentation/swift/calling-functions-with-pointer-parameters#Pass-a-Constant-Pointer-as-a-Parameter).
113
+
///
114
+
/// - Warning: This function is used to implement the `#expect()` and
/// Capture an optional array for use if the expectation currently being
121
+
/// evaluated fails.
122
+
///
123
+
/// - Parameters:
124
+
/// - value: The value to pass through.
125
+
/// - id: A value that uniquely identifies the represented expression in the
126
+
/// context of the expectation currently being evaluated.
127
+
///
128
+
/// - Returns: `value`, verbatim.
129
+
///
130
+
/// This overload of `callAsFunction()` is used when an optional array is
131
+
/// passed to allow for the correct handling of implicit C array conversion
132
+
/// after it returns. For more information about implicit type conversions
133
+
/// performed by the Swift compiler, see [here](https://developer.apple.com/documentation/swift/calling-functions-with-pointer-parameters#Pass-a-Constant-Pointer-as-a-Parameter).
134
+
///
135
+
/// - Warning: This function is used to implement the `#expect()` and
0 commit comments