Contents

error(_:)

Emits the given message as a fatal error and terminates the compilation process.

Declaration

@freestanding(declaration) macro error(_ message: String)

Parameters

  • message:

    The error message.

See Also

Generating Compile-Time Diagnostics