#error
Preprocessor diagnostic directive
Syntax
`
#error error_text
`
Parameters
`error_text`
The display message
Description
`#error` stops compiling and displays `error_text` when compiler finds it.
This keyword must be surrounded by an `#if <condition>` ...`#endif`, so the compiler can reach `#error` only if `<condition>` is met.
Example
`
#define c 1
#if c = 1
#error Bad value of c
#endif
`
Differences from QB

- New to FreeBASIC

See also

- `#if`
- `#print`
- `#Assert`