Re: How to distinguish MYDEF and MYDEF() with #ifdef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Wes,

> Or why not...

Nope, doesn't work.

_OLD_MYDEF (which is a reserved identifier... better to use OLD_MYDEF_) does
not get the value held by MYDEF, rather _OLD_MYDEF gets the value MYDEF
itself, which is then later expanded at the point of use based on what the
value MYDEF holds at that time.

I hate the preprocessor.  (One of the points in favor of Java and D
Programming Language, in my opinion.)

--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux