]> Shamusworld >> Repos - rmac/blobdiff - procln.c
Fixed bug when expanding macros with comments that have @, \, etc.
[rmac] / procln.c
index 3b8c607db3c8c5ed40ffc6778da64bda7e36aa86..2cd1bdc3d513b6b7476d33cea3c59b0e09f8b357 100644 (file)
--- a/procln.c
+++ b/procln.c
@@ -660,6 +660,9 @@ When checking to see if it's already been equated, issue a warning.
                goto loop;
        }
 
+       // Keep a backup of chptr (used for optimisations during codegen)
+       chptr_opcode = chptr;
+
        for(;;)
        {
                if ((m->mnattr & siz) && (amsk0 & m->mn0) != 0 && (amsk1 & m->mn1) != 0)