Servertec | #if | ||||||||||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Used to control compilation of a block of statements when the specified expression evaluates to true. Syntax[ #if expression | #ifdef identifier | #ifndef identifier ] Notes
Example#ifndef EOF #define EOF (-1) #endif #if VERSION == 1 #include <v1sup.h> #elif VERSION == 2 #include <v2sup.h> #elif VERSION == 3 #include <v3sup.h> #else #error version not supported #endif |
||||||||||||||||||
top of page
|