September 2014
Intermediate to advanced
396 pages
7h 58m
English
CHAPTER 17
![]()
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 ...
Read now
Unlock full access