Resource Compiler - #ifndef Directive (OS/2)

Syntax

#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.

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


Preprocessor Directives


Resource Compiler - #ifdef
Resource Compiler - #endif
Conditional Compilation - #ifndef
Resource Script Files
Resource Compiler - An Overview
Resource Compiler - An Overview