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
fatalErrorglobal function with something else.Declaration
Swift
static func replaceFatalError(closure: @escaping FatalErrorClosureType) -
Restore the
fatalErrorglobal function back to the original Swift implementationDeclaration
Swift
static func restoreFatalError()
View on GitHub
FatalErrorUtil Enumeration Reference