#if query

cepek at vixvax.mgi.com cepek at vixvax.mgi.com
Sat Apr 6 08:19:45 AEST 1991


Does ANSI really state that

       #if ABC == DEF

evaluates to FALSE if symbol DEF is not defined!?

If so, I'm disappointed, since  #ifdef  and  #if defined  already
provide that functionality.

If not, I'd appreciate the reference in the spec.  (Neither of my
references [K&R II, Kochan] address this issue directly.)

Thanks in advance.

 ,---------------------------------,___________________________
/  Mike Cepek, Programmer/Analyst / Internet: CEPEK at MGI.COM   /
\  Management Graphics, Inc.      \    Voice: +1 612/851-6112 \  "Engage."
/  1401 East 79th Street          / Operator: +1 612/854-1220 /
\  Minneapolis, MN  55425  USA    \      Fax: +1 612/854-6913 \
 `--------------------------------/___________________________/



More information about the Comp.std.c mailing list