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

This commit is contained in:
Sylvie authored and GitHub committed 2024-08-06 15:35:06 -04:00
1 parent fc8707886c
commit 7435630d6a
8 files changed
+55 -11

No files matched your search

+4 -1
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) {