Trying to find where in the C standard it forbids sizeof() in preprocessor #if expressions
3
@fanf Why would it? (I've not heard of this prohibition before)
1
Replying to @rjek
@rjek @fanf Presumably, simply, sizeof() cannot know during preprocessing.

Nov 17, 2015 ยท 5:04 PM UTC

1
Replying to @dsilverstone
@dsilverstone @rjek The way the standard specifies this is that sizeof gets replaced by 0 in a #if expression before it is evaluated.
2