C++ in a Nutshell

   
#ifdef directive Tests whether a macro is defined

#ifdef identifier

The #ifdef directive begins a region of conditional compilation. It takes a single identifier as an argument and is equivalent to #if defined identifier .

See Also

defined operator, #if directive, # ifndef directive

   

Категории