mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 11:15:39 +00:00
Provide string arguments to errors in constexpr_BankSection
How the f did it work before
This commit is contained in:
1 parent
95cd0c6e53
commit
86a28e8201
1 file changed
+2
-2
+2
-2
@@ -67,9 +67,9 @@ void constexpr_BankSection(struct ConstExpression *expr, char *tzSectionName)
|
||||
struct Section *pSection = out_FindSectionByName(tzSectionName);
|
||||
|
||||
if (!pSection)
|
||||
yyerror("Section \"%s\" doesn't exist");
|
||||
yyerror("Section \"%s\" doesn't exist", tzSectionName);
|
||||
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
|
||||
constexpr_Number(expr, pSection->nBank);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user