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
Enthalten in: Professional Book Archive
Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.
Wählen Sie Textabschnitte aus um mit Künstlicher Intelligenz passenden Patente zu finden. powered by
Markieren Sie Textabschnitte, um KI-gestützt weitere passende Inhalte zu finden. powered by
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.