Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>#if conditional compilation by expression</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
#if                      Conditional Compilation by Expression

 #if  constant-expression

    The #if directive, along with #else, #elif and #endif, controls
    compilation in a selective manner.  These directives are used to
    identify a group of source lines which are included or excluded from
    the compilation based on one or more criteria.  If constant-
    expression has the value true (non-zero), the group of lines
    following the #if is included in the compilation.

      Notes:    constant-expression may not contain the sizeof operator,
                type casts or enumeration constants.

                If constant-expression contains a macro which is
                currently undefined, that macro is treated as though it
                were defined with a value of zero.

                #if directives can be nested up to 32 levels deep.

                Although comments may not be nested, you can use
                #if 0 ... #endif to disable a block of code containing
                comments.

See Also: #else #elif #endif defined

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson