Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
#ifndef (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
The Resource Compiler #ifndef Directive
#ifndef name
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.
Field Description
────────────────────────────────────────────────────────────────────────────
name Specifies the name to be checked by the directive.
Example
This example compiles the BITMAP statement only if the name "Optimize" is
not defined.
#ifndef Optimize
BITMAP 1 errbox.bmp
#endif
See Also
#elif, #else, #endif, #if, #ifdef, #undef
♦