#ifdef
Preprocessor conditional directive
Conditionally includes statements at compile time.
Statements within the #ifdef...#endif block are included if symbol is defined and excluded (ignored) if symbol is not defined.
#ifdef symbol is equivalent to #if defined (symbol)
Syntax
Description
Conditionally includes statements at compile time.
Statements within the #ifdef...#endif block are included if symbol is defined and excluded (ignored) if symbol is not defined.
#ifdef symbol is equivalent to #if defined (symbol)
Example
#define _DEBUG
#ifdef _DEBUG
' Special statements for debugging
#endif
#ifdef _DEBUG
' Special statements for debugging
#endif
Differences from QB
- New to Freebasic
See also