Zusammenfassung
Der C-Präprozessor ist Bestandteil der Programmiersprache C und damit auch C++. Mit ihm ist es möglich, den Quelltext in einem ersten Übersetzungsschritt zu verändern, bevor der Compiler den daraus entstandenen Quellcode übersetzt. Nach Bjarne Stroustrup [1] sollten Makros in C++ nur benutzt werden, wenn es unabdingbar ist, denn sie demonstrieren eine Schwäche in der Programmiersprache selbst, im Programm oder beim Programmierer.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
gcc Debian 4.6.3.
Literatur
Stroustrup, Bjarne. 2000. Die C++ Programmiersprache. München: Addison-Wesley. ISBN 3-8273-1660-X.
Meyers, Scott. 1998. Effektiv C++ programmieren. Bonn: Addision-Wesley. ISBN 3-8273-1305-8.
Standard ISO/IEC 1999. Programming languages — C. [pdf] Genf : s.n., 1999. INTERNATIONAL STANDARD ISO/IEC 9899.
Microsoft. Vordefinierte Makros. http://msdn.microsoft.com/de-de/library/vstudio/b0084kay.aspx. Zugegriffen am 31.05.2013.
Wikipedia. Parameter (Informatik). http://de.wikipedia.org/wiki/Parameter_%28Informatik%29. Zugegriffen am 08.05.2013.
Standard ISO/IEC 1999. Programming languages — C. [pdf] Genf: s.n., 1999. INTERNATIONAL STANDARD ISO/IEC 9899.
Deniau, Laurent. http://groups.google.com. http://groups.google.com/group/comp.std.c/browse_thread/thread/77ee8c8f92e4a3fb/346fc464319b1ee5?pli=1. Zugegriffen am 05.05.2013.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2016 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Lemke, J. (2016). C-Präprozessor. In: C++-Metaprogrammierung . Xpert.press. Springer Vieweg, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-48550-7_2
Download citation
DOI: https://doi.org/10.1007/978-3-662-48550-7_2
Published:
Publisher Name: Springer Vieweg, Berlin, Heidelberg
Print ISBN: 978-3-662-48549-1
Online ISBN: 978-3-662-48550-7
eBook Packages: Computer Science and Engineering (German Language)