Work around a crash when '@' is interpreted as a macro name.

This commit is contained in:
Anthony J. Bentley
2015-01-22 21:12:57 -07:00
parent 4f8cf84ed4
commit 361f1ac50b
2 changed files with 3 additions and 1 deletions

View File

@@ -540,7 +540,7 @@ macro : T_ID {
yy_set_state(LEX_STATE_NORMAL);
if (!fstk_RunMacro($1)) {
yyerror("Macro '%s' not defined", $1);
fatalerror("Macro '%s' not defined", $1);
}
};

View File

@@ -255,6 +255,8 @@ fstk_RunMacro(char *s)
sym_UseNewMacroArgs();
nCurrentStatus = STAT_isMacro;
strcpy(tzCurrentFileName, s);
if (sym->pMacro == NULL)
return 0;
pCurrentMacro = sym;
CurrentFlexHandle =
yy_scan_bytes(pCurrentMacro->pMacro,