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