]> git.sur5r.net Git - cc65/commitdiff
A local macro symbol with a cheap local name (@...) was not identified as
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 1 Dec 2005 21:20:03 +0000 (21:20 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 1 Dec 2005 21:20:03 +0000 (21:20 +0000)
such.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3677 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/macro.c

index dc933cd8b39291343eb0474905ee0c8e93846af7..41697b66dd79f533d7edc5396b30aaece97342a2 100644 (file)
@@ -602,7 +602,7 @@ static int MacExpand (void* Data)
                }
 
                /* If it's an identifier, it may in fact be a local symbol */
-               if (Tok == TOK_IDENT && Mac->M->LocalCount) {
+               if ((Tok == TOK_IDENT || Tok == TOK_LOCAL_IDENT) && Mac->M->LocalCount) {
                    /* Search for the local symbol in the list */
                    unsigned Index = 0;
                    IdDesc* I = Mac->M->Locals;