#IFDEF
Preprocessor conditional directive
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)
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)
Examples:
#DEFINE _DEBUG
#IFDEF _DEBUG
' Special statements for debugging
#ENDIF
#IFDEF _DEBUG
' Special statements for debugging
#ENDIF
Differences from QB:
- New to Freebasic
See also:
Back to Preprocessor