Re: [cc65] bug with macro substitution

From: Ullrich von Bassewitz <uz1musoftware.de>
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
using

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

        func(func(...))

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)
        func(fonc(...))

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

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de 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