cunniff@hpfclq.HP.COM (Ross Cunniff) (01/23/88)
Does Lattice C 4.0 fix the $#@(%&^*&^ misfeature common to all
other Lattices (both MS-DOG and Amiga) whereby the use of a macro
may NOT be split over two source lines (even escaping the newline)?
e.g.
#define MAX(a,b) (((a)>(b))?(a):(b))
main()
{
...
foo = MAX( Extremely_Long_And_Complicated_Expression_Number_1,
Another_Extremely_Long_And_Complicated_Expression );
}
lc1 of something like the above would produce the message 'Invalid macro usage'.
***EVERY*** other C compiler preprocessor I've used accepts macros split
across lines. ***WHY*** doesn't Lattice? (P.S. no flames about this particular
example; it was just an easy one to think of off the top of my head).
Ross Cunniff
Hewlett-Packard System Software Operation
...{ucbvax,hplabs}!hpda!cunniff
cunniff%hpda@hplabs.ARPA