On Sun, Feb 09, 2003 at 04:47:55PM -0500, Clint Adams wrote: > > Any identifier without a definition is considered to be 0 in an #if. > > Macro substitution is performed on TEST_THREE, which converts it to the > > identifier TEST_THREE - still not #define'd. So it's 0. > > So, to be clear, it's impossible to compare RLIMIT defines in the > preprocessor, then?
They're enums, right? Yes, it's impossible. Enums aren't processed until a later stage of compilation, when preprocessing is already finished. The only thing "#define A A" accomplishes is to let you use #ifdef. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer