Re: [cc65] bug with macro substitution

From: Ullrich von Bassewitz <>
Date: 2009-01-24 13:59:55
On Sat, Jan 24, 2009 at 01:16:16PM +0100, Groepaz wrote:
> there is a bug in the preprocessor (i think) ... the following works
> (compiles) correctly:

It's a bug and it is triggered by nesting one macro expansion inside itself.
This is all I can say for now. In other words: It is triggered because you're

        #define func(x,y)     _func(x,y)


Maybe you can work around by the problem for now by using something like

        #define func(x,y)     _func(x,y)
        #define fonc(x,y)     _func(x,y)

I will notify you as soon as I've located and fixed the problem.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Jan 24 14:01:30 2009

This archive was generated by hypermail 2.1.8 : 2009-01-24 14:01:32 CET