Article View: net.micro.atari16
Article #1627YAMCB (yet another Megamax C bug)
From: D'arc Angel
Date: Tue, 26 Aug 1986 18:25
Date: Tue, 26 Aug 1986 18:25
42 lines
1313 bytes
1313 bytes
~~~~~~~~~~~~~~~\ 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
Technical Details
Message-ID:
<482@imagen.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!vecpyr!amd!amdcad!decwrl!sun!saber!imagen!turnerShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!vecpyr!amd!amdcad!decwrl!sun!saber!imagen!turner From: turner@imagen.UUCP (D'arc Angel) Newsgroups: net.micro.atari16 Subject: YAMCB (yet another Megamax C bug) Message-ID: <482@imagen.UUCP> Date: Tue, 26-Aug-86 14:25:38 EDT Article-I.D.: imagen.482 Posted: Tue Aug 26 14:25:38 1986 Date-Received: Wed, 27-Aug-86 21:36:42 EDT Distribution: net Organization: The Houses of the Holy Lines: 42