Düzenle

Aracılığıyla paylaş


#ifndef

The #ifndef directive controls conditional compilation of the resource file by checking the specified name. If the name has not been defined or if its definition has been removed by using the #undef directive, #ifndef directs the compiler to continue processing statements up to the next #endif, #else, or #elif directive and then skip to the statement after the #endif directive. If the name is defined, #ifndef directs the compiler to skip to the next #endif, #else, or #elif directive.

#ifndef name

name

Name to be checked by the directive.

Example

This example compiles the BITMAP statement only if Optimize is not defined:

#ifndef Optimize
BITMAP 1 errbox.bmp
#endif

Preprocessor Directives