Contents|Index|Previous|Next

Macros

A macro is a sort of abbreviation which you can define once and then use later. There are many complicated features associated with macros in the C preprocessor.

See the following documentation for more detailed discussion of macros.

- Simple Macros
- Macros with Arguments
- Predefined Macros

- Standard Predefined Macros
- Nonstandard Predefined Macros

- Stringification
- Concatenation
- Undefining Macros
- Redefining Macros
- Pitfalls and Subtleties of Macros

- Improperly Nested Constructs
- Unintended Grouping of Arithmetic
- Swallowing the Semicolon
- Duplication of Side Effects
- Self-Referential Macros
- Separate Expansion of Macro Arguments
- Cascaded Use of Macros

- Newlines in Macro Arguments