Skip to main content

1996 | OriginalPaper | Buchkapitel

The C Preprocessor

verfasst von : Peter A. Darnell, Philip E. Margolis

Erschienen in: C A Software Engineering Approach

Verlag: Springer New York

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

You can think of the C preprocessor as a separate program that runs before the compiler, with its own simple, line-oriented grammar and syntax. In previous chapters, we introduced two preprocessor directives—the #define command for naming a constant and the #include command for including additional source files. This chapter discusses both of these directives in greater detail and also describes other preprocessor directives that have not been mentioned yet. Briefly, the preprocessor gives you the following capabilities: Macro processing.Inclusion of additional C source files.“Conditional compilation,” which enables you to conditionally compile sections of C source contingent on the value of an arithmetic expression.

Metadaten
Titel
The C Preprocessor
verfasst von
Peter A. Darnell
Philip E. Margolis
Copyright-Jahr
1996
Verlag
Springer New York
DOI
https://doi.org/10.1007/978-1-4612-4020-4_11