FatalErrorUtil
public struct FatalErrorUtil
Utility functions that can replace and restore the fatalError
global function.
-
Undocumented
Declaration
Swift
static var fatalErrorClosure: (String, StaticString, UInt) -> Never
-
Replace the
fatalError
global function with something else.Declaration
Swift
public static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never)
-
Restore the
fatalError
global function back to the original Swift implementationDeclaration
Swift
public static func restoreFatalError()