Error messages note when a symbol has been purged (#1453)

This commit is contained in:
Sylvie
2024-08-06 15:35:06 -04:00
committed by GitHub
parent fc8707886c
commit 7435630d6a
8 changed files with 55 additions and 11 deletions

View File

@@ -333,7 +333,10 @@ void fstk_RunMacro(std::string const &macroName, std::shared_ptr<MacroArgs> macr
Symbol *macro = sym_FindExactSymbol(macroName);
if (!macro) {
error("Macro \"%s\" not defined\n", macroName.c_str());
if (sym_IsPurgedExact(macroName))
error("Macro \"%s\" not defined; it was purged\n", macroName.c_str());
else
error("Macro \"%s\" not defined\n", macroName.c_str());
return;
}
if (macro->type != SYM_MACRO) {