[cc65] Multi-line macro bug

Date view Thread view Subject view

From: Adam Dunkels (adam_at_sics.se)
Date: 2001-06-23 18:43:40


Hi!

There seems to be a bug concerning multi-line macros in the C preprocessor in 
cc65 version 2.6.1 and the latest snapshot. When trying to compile the 
following program: 

#define HELLO(x,y)  x = y; \
                    y = x;

void
main(void)
{
        int a,b;
        HELLO(a,b);
}

cc65 says "Error: Invalid input character with code 0A". The same code 
compiles fine under cc65 version 2.4.1.

Is this a known bug? Are there any fixes?

/adam
-- 
Adam Dunkels <adam_at_sics.se>
http://www.sics.se/~adam
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:40 CET