GNU Info

Info Node: (cpp-295.info)Conditional Syntax

(cpp-295.info)Conditional Syntax


Next: Deleted Code Prev: Conditional Uses Up: Conditionals
Enter node , (file) or (file)node

Syntax of Conditionals
----------------------

   A conditional in the C preprocessor begins with a "conditional
directive": `#if', `#ifdef' or `#ifndef'.  Note: Conditionals-Macros,
for information on `#ifdef' and `#ifndef'; only `#if' is explained here.

If
#if Directive. Basic conditionals using `#if' and `#endif'.
Else
#else Directive. Including some text if the condition fails.
Elif
#elif Directive. Testing several alternative possibilities.

automatically generated by info2www version 1.2.2.9