Re: [cc65] Macros in ca65

From: Ullrich von Bassewitz <>
Date: 2011-12-07 22:18:56
On Wed, Dec 07, 2011 at 06:22:18PM +0100, Björn Spruck wrote:
> this looks promising.
> but what happens if you have two of these after each other?
> Is it possible to undef a label to bring it out of scope at with the _IF ?

You cannot undefine a symbol, but you can introduce another counter that gets
incremented on each _IFNE or _IFEQ but never decremented. If you add this to
your labels, they become unique. It's probably difficult to combine this with
nesting, but I think it's possible to come up with a solution.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Dec 7 22:19:05 2011

This archive was generated by hypermail 2.1.8 : 2011-12-07 22:19:08 CET