Preprocessor Commands [C++ Reference]
Keywords: preprocessor,start
Date: 2009-09-01T10:32:22-0700

[[Preprocessor Commands]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## Preprocessor Commands

The C++ preprocessor runs before any other compilation happens. Commands given to the preprocessor allow the programmer to define variables, perform text substitution, and test simple conditions.

# and ## | manipulate strings
#define | define macrodefinition
#error | display an error message
#if, #ifdef, #ifndef, #else, #elif, and #endif | conditional operators
#include | insert the contents of another file
#line | set line and file information
#pragma | implementation specific command
#undef | used to undefine macrodefinitions
Predefined preprocessor variables | miscellaneous preprocessor variables

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •