Skip to main content
Top

1993 | OriginalPaper | Chapter

The C Preprocessor

Authors : B. A. E. Meekings, T. P. Kudrycki, M. D. Soren

Published in: A Book on C

Publisher: Macmillan Education UK

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

We have already introduced the C preprocessor directives #include and #define for file inclusion and symbol definition capabilities. In this chapter, we expand the discussion to include all other capabilities of the preprocessor such as the #undef directive, the use of the conditional compilation directives #if, #ifdef, #ifndef, #else, #elif and #endif, string concatenation and token pasting. In addition, parameters for the #define directive are introduced to yield a more powerful macro facility. Some of these facilities have been defined recently in the ANSI standard and may not be available on your implementation.

Metadata
Title
The C Preprocessor
Authors
B. A. E. Meekings
T. P. Kudrycki
M. D. Soren
Copyright Year
1993
Publisher
Macmillan Education UK
DOI
https://doi.org/10.1007/978-1-349-12804-4_11

Premium Partner