C Preprocessor
The C preprocessor (cpp) is a macro-processor which
- reads a collection of macro definitions
- then reads a C program and transforms it via the definitions
Example:
#define MAXVALUE 100
#define check(x) ((x) < MAXVALUE)
...
if (check(i)) { ... }
becomes
...
if ((i) < 100) { ... }
Index