Function

fatal_error(_:file:line:)

Unconditionally stops execution.

Source
fun fatal_error(
   _ message: String,
   file: String,
   line: Int
) -> Never

Parameters

message

A description of the error to write to the standard error of a hosted environment before terminating the program. The default is an empty string.

file

The file name to print with message. The default is the file where this function is called.

line

The line number to print along with message. The default is the line where this function is called.