$WARNING compiler directive

$WARNING compiler directive

Top  Previous  Next

 

The $WARNING directive generates a compilation warning.

 

 

Format

 

$WARNING message

 

where

 

messageis the warning message to be displayed by the compiler.

 

 

The $WARNING directive causes the QMBasic compiler to generate a compilation warning message. It is most likely to be used inside a $IFDEF conditional compilation structure to recognise that the program is in some way invalid.

 

 

Example

 

$IFNDEF PLATFORM

  $WARNING Platform not defined

$ENDIF

 

The above example generates a compilation warning if the PLATFORM token has not been defined.

 

 
See also:

$DEFINE, $ERROR, $IFDEF, $STOP