Syntax
#warning Message
or
#error ErrorMessage
Description
#warning will issue a warning message visible in the progress window of
BASICtools.
#error will generate a compiler error and prevent the BASIC program from
being downloaded.
Example
#define COMPILETHIS
#ifdef COMPILETHIS
'...
#else
#error No code available for this option
#endif
Differences from other BASICs
- similar function in PBASIC
- no equivalent in Visual BASIC, but may be done with C-pre-processor
See also