Is it only ANSI C that allow #if to compare symbols?
Richard Minner
rtm at christmas.UUCP
Tue Jan 22 16:33:18 AEST 1991
In article <14900 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
> ...
> #if TEST == VAL_A
> ...
> #elif TEST == VAL_B
> ...
> #fi
#fi ? Sorry Doug, X3J11 considered it but decided it wasn't necessary.
(Hey, someone had to point it out or we'd end up with posts saying
"my compiler is supposed to be ANSI compatible but it doesn't support
`#fi'. Isn't that part of ANSI-C?")
--
Richard Minner rtm at island.COM {uunet,sun,well}!island!rtm
Island Graphics Corporation Sacramento, CA (916) 736-1323
More information about the Comp.lang.c
mailing list