Skip to main content

C-Präprozessor

  • Chapter
  • First Online:
C++-Metaprogrammierung

Part of the book series: Xpert.press ((XPERT.PRESS))

  • 4184 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 59.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    gcc Debian 4.6.3.

Literatur

  1. Stroustrup, Bjarne. 2000. Die C++ Programmiersprache. München: Addison-Wesley. ISBN 3-8273-1660-X.

    Google Scholar 

  2. Meyers, Scott. 1998. Effektiv C++ programmieren. Bonn: Addision-Wesley. ISBN 3-8273-1305-8.

    Google Scholar 

  3. Standard ISO/IEC 1999. Programming languages — C. [pdf] Genf : s.n., 1999. INTERNATIONAL STANDARD ISO/IEC 9899.

    Google Scholar 

  4. Microsoft. Vordefinierte Makros. http://msdn.microsoft.com/de-de/library/vstudio/b0084kay.aspx. Zugegriffen am 31.05.2013.

  5. Wikipedia. Parameter (Informatik). http://de.wikipedia.org/wiki/Parameter_%28Informatik%29. Zugegriffen am 08.05.2013.

  6. Standard ISO/IEC 1999. Programming languages — C. [pdf] Genf: s.n., 1999. INTERNATIONAL STANDARD ISO/IEC 9899.

    Google Scholar 

  7. 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.

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jürgen Lemke .

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics