#ifndef
Preprocessor conditional directive
Conditionally includes statements at compile time.
Statements within the #ifndef...#endif block are included if symbol is not defined and excluded (ignored) if symbol is defined.
#ifndef symbol is equivalent to #if Not defined(symbol)
Syntax
Description
Conditionally includes statements at compile time.
Statements within the #ifndef...#endif block are included if symbol is not defined and excluded (ignored) if symbol is defined.
#ifndef symbol is equivalent to #if Not defined(symbol)
Example
#ifndef __MYFILE_BI__
#define __MYFILE_BI__
' Declarations
#endif
#define __MYFILE_BI__
' Declarations
#endif
Differences from QB
- New to FreeBASIC
See also