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: RFDiscussion: Macros used throughout gcc but not defined anywhere


> I would assume that a #if (as opposed to #ifdef or #ifndef) is
> referring to a symbol that's defined *somewhere* -- otherwise you'd
> get a compile error, right?

Nope.  Undefined symbols have value 0 in #if.  See the standard.

One of the really odd things about C, IMHO.

-Tim


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