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
fatalErrorglobal function with something else.Declaration
Swift
public static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) -
Restore the
fatalErrorglobal function back to the original Swift implementationDeclaration
Swift
public static func restoreFatalError()
FatalErrorUtil Structure Reference