mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Provide string arguments to errors in constexpr_BankSection
How the f did it work before
This commit is contained in:
@@ -67,9 +67,9 @@ void constexpr_BankSection(struct ConstExpression *expr, char *tzSectionName)
|
|||||||
struct Section *pSection = out_FindSectionByName(tzSectionName);
|
struct Section *pSection = out_FindSectionByName(tzSectionName);
|
||||||
|
|
||||||
if (!pSection)
|
if (!pSection)
|
||||||
yyerror("Section \"%s\" doesn't exist");
|
yyerror("Section \"%s\" doesn't exist", tzSectionName);
|
||||||
else if (pSection->nBank == -1)
|
else if (pSection->nBank == -1)
|
||||||
yyerror("Section \"%s\"'s bank is not known yet");
|
yyerror("Section \"%s\"'s bank is not known yet", tzSectionName);
|
||||||
else
|
else
|
||||||
constexpr_Number(expr, pSection->nBank);
|
constexpr_Number(expr, pSection->nBank);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user