#IFDEF
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgPpifdef
- Last revised: 2023-10-02
Preprocessor conditional directive
Syntax
#ifdef symbol
' Conditionally included statements
#endifDescription
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)
Examples
start GeSHi
vb
#DEFINE _DEBUG
#IFDEF _DEBUG
' Special statements for debugging
#ENDIFend GeSHi
Differences from QB
- New to Freebasic
See also
#define#macro#if#else#elseif#elseifdef#elseifndef#endif#ifndef#undefdefined
Back to DocToc