diff --git a/src/asm/fstack.c b/src/asm/fstack.c index 3035ab7c..3a84877e 100644 --- a/src/asm/fstack.c +++ b/src/asm/fstack.c @@ -318,7 +318,7 @@ uint32_t fstk_RunMacro(char *s) { struct sSymbol *sym = sym_FindMacro(s); - if (sym == NULL) + if (sym == NULL || sym->pMacro == NULL) return 0; pushcontext(); @@ -328,9 +328,6 @@ uint32_t fstk_RunMacro(char *s) nCurrentStatus = STAT_isMacro; strcpy(tzCurrentFileName, s); - if (sym->pMacro == NULL) - return 0; - pCurrentMacro = sym; CurrentFlexHandle = yy_scan_bytes(pCurrentMacro->pMacro, strlen(pCurrentMacro->pMacro)); diff --git a/test/asm/macro-@.out b/test/asm/macro-@.out index 0b399407..d31f4c95 100644 --- a/test/asm/macro-@.out +++ b/test/asm/macro-@.out @@ -1,2 +1,2 @@ -ERROR: macro-@.asm(1) -> @(-1): +ERROR: macro-@.asm(1): Macro '@' not defined diff --git a/test/asm/macro-@.out.pipe b/test/asm/macro-@.out.pipe index 725c38be..8e0a1a2e 100644 --- a/test/asm/macro-@.out.pipe +++ b/test/asm/macro-@.out.pipe @@ -1,2 +1,2 @@ -ERROR: -(1) -> @(-1): +ERROR: -(1): Macro '@' not defined