Function swift_runtime_sys::root::swift::swift_isEscapingClosureAtFileLocation
source ยท pub unsafe extern "C" fn swift_isEscapingClosureAtFileLocation(
object: *const HeapObject,
filename: *const c_uchar,
filenameLength: i32,
line: i32,
column: i32,
type_: c_uint,
) -> bool
Expand description
Is this native Swift pointer non-null and has a reference count greater than one. This runtime call will print an error message with file name and location if the closure is escaping but it will not abort.
\p type: 0 - withoutActuallyEscaping verification Was the closure passed to a withoutActuallyEscaping block escaped in the block? 1 - @objc closure sentinel verification Was the closure passed to Objective-C escaped?