failCompilation (--)
Inputs
- None.
Outputs
- None.
As soon as it is reached during compilation, compilation fails unconditionally.
The reported error text is always the single generic line failCompilation. The message cannot be customized.
Behavior
- Extra context is printed separately before calling
failCompilation.
Example
{} 0 {} [
"about to stop" printCompilerMessage
failCompilation
0
] "main" exportFunction
Expected Output During Compilation
about to stop
Expected Compilation Error
failCompilation
See also
getCallTracebuiltin(-- callTrace)Returns a Ref to the current call trace, orNILwhen unavailable.printCompilerMessagebuiltin(message --)Prints a known Text message during compilation and appends one line-feed character.printStackbuiltin(--)Prints the current data stack in canonical formatter form; it does not itself pop stack objects.printStackTracebuiltin(--)Prints the current scope stack as file path, line, column, and node source text information.raiseStaticErrorbuiltin(message --)Raises a compile-time error with the given known Text message.