$STOP compiler directive

$STOP compiler directive

Top  Previous  Next

 

The $STOP directive terminates compilation.

 

 

Format

 

$STOP {message}

 

where

 

messageis an optional message to be displayed by the compiler.

 

 

The $STOP directive causes the QMBasic compiler to terminate compilation of the current program. It is most likely to be used inside a $IFDEF conditional compilation structure to recognise that the program is inappropriate to the system being compiled.

 

 

Example

 

$IFDEF QM

  $STOP Program not applicable to QM

$ENDIF

 

The above example appears in the program in the BP file of the QMSYS account. This program is issued in source form for use in environments other than QM.

 

 
See also:

$DEFINE, $ERROR, $IFDEF, $WARNING