3. Macros. Red Hat ENTERPRISE LINUX 4 - USING BINUTILS, ENTERPRISE LINUX 4 - DEVELOPER TOOLS GUIDE
Below you will find brief information for Enterprise Linux 4 C Preprocessor. This manual details how to use cpp, the C preprocessor. It covers topics such as character sets, initial processing, tokenization, header files, macros, conditionals, diagnostics, line control, pragmas, preprocessor output and other directives. Understand how to effectively transform your C programs before compilation.
Advertisement
Advertisement
Advertisement
Key features
Header file inclusion to share declarations and definitions.
Macro expansion for shorter code abbreviations.
Conditional compilation for code inclusion or exclusion.
Line control for tracking source line origins.
Diagnostics for compile-time issue detection.
Frequently asked questions
The C preprocessor implements a macro language used to transform C, C++, and Objective-C programs before they are compiled.
A header file is a file containing C declarations and macro definitions to be shared between several source files.
You include a header file using the #include preprocessing directive.
Use a wrapper #ifndef conditional around the contents of the header file.