mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Error messages note when a symbol has been purged (#1453)
This commit is contained in:
@@ -333,7 +333,10 @@ void fstk_RunMacro(std::string const ¯oName, 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) {
|
||||
|
||||
Reference in New Issue
Block a user