Target Language Compiler | ![]() ![]() |
Asserts, Errors, Warnings, and Debug Messages
The related assert, error, warning, and debug message directives are
These directives produce error, warning, or trace messages whenever a target file detects an error condition, or tracing is desired. All of the tokens following the directive on a line become part of the generated error or warning message.
The Target Language Compiler places messages generated by %trace
onto stderr
if and only if you specify the verbose mode switch (-v
) to the Target Language Compiler. See Command Line Arguments for additional information about switches.
The %assert
directive will evaluate the expression and will produce a stack trace if the expression evaluates to a Boolean false
.
The %exit
directive reports an error and stops further compilation.
![]() | Input File Control | Built-In Functions and Values | ![]() |