mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Tell the user about "label"s instead of "relocatable"s
That's the common term, and even the manual uses it.
This commit is contained in:
@@ -177,7 +177,7 @@ void rpn_BankSymbol(struct Expression *expr, char const *tzSym)
|
||||
|
||||
rpn_Init(expr);
|
||||
if (sym && !sym_IsLabel(sym)) {
|
||||
yyerror("BANK argument must be a relocatable identifier");
|
||||
yyerror("BANK argument must be a label");
|
||||
} else {
|
||||
sym_Ref(tzSym);
|
||||
/* If the symbol didn't exist, `sym_Ref` created it */
|
||||
|
||||
@@ -624,10 +624,10 @@ bool sym_IsRelocDiffDefined(char const *tzSym1, char const *tzSym2)
|
||||
* coherency with sym_AddReloc and sym_AddLocalReloc).
|
||||
*/
|
||||
if (!sym_IsDefined(nsym1))
|
||||
fatalerror("Relocatable symbol \"%s\" isn't defined.", tzSym1);
|
||||
fatalerror("Label \"%s\" isn't defined.", tzSym1);
|
||||
|
||||
if (!sym_IsDefined(nsym2))
|
||||
fatalerror("Relocatable symbol \"%s\" isn't defined.", tzSym2);
|
||||
fatalerror("Label \"%s\" isn't defined.", tzSym2);
|
||||
|
||||
/*
|
||||
* Both of them must be in the same section for the difference to be
|
||||
|
||||
Reference in New Issue
Block a user