Functions
The following functions are available globally.
-
Just like Swift.precondition, but includes the full file path in the diagnostic.
Declaration
Swift
func precondition( _ condition: @autoclosure () -> Bool, _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -
Just like Swift.preconditionFailure, but includes the full file path in the diagnostic.
Declaration
Swift
func preconditionFailure( _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -> Never -
Just like Swift.fatalError, but includes the full file path in the diagnostic.
Declaration
Swift
func fatalError( _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -> Never -
Just like Swift.assert, but includes the full file path in the diagnostic.
Declaration
Swift
func assert( _ condition: @autoclosure () -> Bool, _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -
Just like Swift.assertionFailure, but includes the full file path in the diagnostic.
Declaration
Swift
func assertionFailure( _ message: @autoclosure () -> String = String(), file: StaticString = #filePath, line: UInt = #line ) -
Reports the given
diagnosticon the standard error and exit with status -1.Declaration
Swift
func error(_ diagnostic: String) -> Never -
Undocumented
Declaration
Swift
func main()
View on GitHub
Functions Reference