Skip to content

C Preprocessor abuse

pfultz2 edited this page Jul 5, 2012 · 1 revision

Quote from Paul Mensonides about preprocessor abuse:

Virtually all issues related to the misuse of the preprocessor stems from attempting to make object-like macros look like constant variables and function-like macro invocations look like underlying-language function calls. At best, the correlation between function-like macro invocations and function calls should be incidental. It should never be considered to be a goal. That is a fundamentally broken mentality.

Clone this wiki locally