#ifdef

FreeBASIC

#ifdef
 
Preprocessor conditional directive

Syntax

#ifdef symbol
' Conditionally included statements
#endif

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


Differences from QB

  • New to Freebasic

See also