#error

Produce a compiler error message.

#error  Text

Parameters

Text—message text

Description

The directive #error causes the ProcScript compiler to generate an error message. The message Text appears in the Compiler Output tab, and the error is added to the total for the module being compiled.

The following example causes the ProcScript compiler to generate an error message if the compile-time constant <MYCONSTANT> has not been defined:

#ifundefined MYCONSTANT
   #error The constant MYCONSTANT has not been defined.
#endif

Related Topics