2 ms·
I suspect the point is that the preprocessor language expression syntax that is out of whack with the host languages it is integrated into. If you hoist an expr
by kazinator 4y ago
I suspect the point is that the preprocessor language expression syntax that is out of whack with the host languages it is integrated into. If you hoist an expression of the language proper into a preprocessing directive, you may get gibberish.
This could happen by accident, particularly through layers of macros:
Say you have:
#if SOME_MACRO(ARG)
originally, this expands to an constant expression in which everything is an integer; then someone edits the macro. Things may still compile, but the expression is gibberish, not doing what it looks like it's doing.
The macro could be used in non-preprocessing contexts:
int x = SOME_MACRO(X);
if (SOME_MACRO(Y)) ...
so that programmer might have a good reason for editing it; just they didn't notice it's also used in an #if directive.