Conditional Inclusion

Nasza ocena:

3
Wyświetleń: 581
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Conditional Inclusion - strona 1 Conditional Inclusion - strona 2

Fragment notatki:

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)

Zaloguj się, aby dodać komentarz