A macro represents some set of operations that result in a value.
Syntax
macro( { expression { , expression }... } )
Notes
macro
|
the name of the macro to use,
[ A..Z | a..z | _ ]{ A..Z | a..z | _ | 0..9 }...
|
expression
|
an expression to evaluate.
|
iPP predefines the following macros for use with the #if directive:
defined( )
|
returns whether the specified identifier or macro exists.
|
exist( )
|
returns whether the specified file exists.
|
New macros can be defined using the #define directive.
Example
#if !(defined(OS) || defined(VERSION))
#error release not setup properly
#endif
|