O'Reilly logo

C++ 2013 for C# Developers,Second Edition by Dean C. Wills

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 17

image

The Preprocessor

Power tends to corrupt; absolute power corrupts absolutely.

—Lord Acton

The preprocessor in C was historically a separate program that was able to affect code compilation based on the value of flags defined at compile time. Over time, the preprocessor was extended and integrated into the C++ compiler. The designers of C# chose to adopt a subset of the C++ preprocessor, retaining only the conditional compilation commands and rejecting the macro substitution language in order to keep C# code simple.

Preprocessor directives all begin with the # symbol. Modern compilers increase throughput by integrating the preprocessor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required