#ifdef without identifier
Dolf Grunbauer
dolf at idca.tds.PHILIPS.nl
Sat Dec 15 02:34:02 AEST 1990
We just traced a wierd bug. After some debugging it turned out that parts
of the code was not compiled. The code was something like:
#ifdef /* FLAG */
do_something();
#endif
Obviously the source was compiled with -DFLAG. The code between the #ifdef
and #endif was not included in the compilation and everyone looked over this
error (?). The compiler gave no warnings or errors, but I think it should do
so in this case as an 'ifdef' always requires an identifier, or do I miss
something ? I also tried just a plain '#ifdef' on a line and this too is
accepted by our compiler (i.e. code is not included in the compilation).
--
_ _
/ U | Dolf Grunbauer Tel: +31 55 433233 Internet dolf at idca.tds.philips.nl
/__'< Philips Information Systems UUCP ...!mcsun!philapd!dolf
88 |_\ If you are granted one wish do you know what to wish for right now ?
More information about the Comp.lang.c
mailing list