Current area: HOME -> C / C++ -> Preprocessor Articles
Preprocessor
C++ Preprocessor: Always Assert Your Code Is Right
Are you looking for a way to speed up the debugging process in C++? This article explains how to use asserts to do just that, showing that not all macros are evil.
C++ Preprocessor: The Code in the Middle
In this article, we examine instructions given to the preprocessor and see how they are used in general. The preprocessor handles your code before the compiler interprets it. If you have been wondering just what the preprocessor is used for, this article explains.
Reducing Preprocessor Namespace Pollution
The authors look at the nasty habit that many popular APIs have
of trampling roughshod over the global namespace (and all other
namespaces) with the macro preprocessor, and demonstrate a
simple technique to obviate it, and still be a good C++itizen.