turner@imagen.UUCP (D'arc Angel) (08/26/86)
~~~~~~~~~~~~~~~\ lineater \~~~~~~~~~~~~~~~~~
i found what i believe is a bug in the megamax C preprocessor...
if( a == b &&
#if FRED
c == 'B' || d == 'E' ||
#endif
b == 'b' || d == 'e')
some action;
causes megamax to give the error:
c == 'B' || d == 'E' ||
error in constant expression
however
#if FRED
if( a == b &&
c == 'B' || d == 'E' ||
b == 'b' || d == 'e')
some action;
#else
if( a == b &&
b == 'b' || d == 'e')
some action;
#endif
compiles correctly
--
----
It aint life that gets me down, it's gravity
Name: James M. Turner
Mail: Imagen Corp. 2650 San Tomas Expressway, P.O. Box 58101
Santa Clara, CA 95052-8101
AT&T: (408) 986-9400
UUCP: ...{decvax,ucbvax}!decwrl!imagen!turner
CompuServe: 76327,1575
GEnie : D-ARCANGEL