This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stupid C preprocessor question


Steven G. Kargl wrote:

I don't have access to
the C99 standard, but Harbison and Steele state in a discussion
of #if ... #endif constructs that "A group of lines that is discarded is not processed by the preprocessor." (H&S, 5th ed.
page 62).

This is just plain wrong, or rather casually careless.


It appears that gcc is preprocessing the discarded lines.

The lines discarded still have to be valid sequences of tokens.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]