Abstract
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.
Preview
Unable to display preview. Download preview PDF.
Copyright information
© 1993 B. A. E. Meekings, T. P. Kudrycki and M. D. Soren
About this chapter
Cite this chapter
Meekings, B.A.E., Kudrycki, T.P., Soren, M.D. (1993). The C Preprocessor. In: A Book on C. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-12804-4_11
Download citation
DOI: https://doi.org/10.1007/978-1-349-12804-4_11
Publisher Name: Palgrave, London
Print ISBN: 978-0-333-56919-1
Online ISBN: 978-1-349-12804-4
eBook Packages: EngineeringEngineering (R0)