Whole document tree
    

Whole document tree

The C Preprocessor: Macros
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.4 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.

1.4.1 Simple Macros  Macros that always expand the same way.
1.4.2 Macros with Arguments  Macros that accept arguments that are substituted into the macro expansion.
1.4.3 Predefined Macros  Predefined macros that are always available.
1.4.4 Stringification  Macro arguments converted into string constants.
1.4.5 Concatenation  Building tokens from parts taken from macro arguments.
1.4.6 Undefining Macros  Cancelling a macro's definition.
1.4.7 Redefining Macros  Changing a macro's definition.
1.4.8 Pitfalls and Subtleties of Macros  Macros can confuse the unwary. Here we explain several common problems and strange features.



This document was generated by root on January, 30 2002 using texi2html