To tylko jedna z 2 stron tej notatki. Zaloguj się aby zobaczyć ten dokument.
Zobacz
całą notatkę
Conditional Inclusion The #if line evaluates a constant integer expression If the expression is non-zero, subsequent lines until an #endif or #elif or #else or #elifdef or #elifndef are included The expression defined( name ) in a #if is 1 if the name has been defined, and 0 Otherwise Example #define DEBUG 0 ... #if DEBUG printf("x=%d\n", x); printf("y=%d\n", y); #endif #ifdef - if defined #ifndef - if not defined Most compilers define special constans making possible identifying the compiler and system #if SYSTEM == MSDOS #include #else #include "default.h" #endif
... zobacz całą notatkę
Komentarze użytkowników (0)