mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 19:22:05 +00:00
Improve error message when a symbol's value is not constant
This commit is contained in:
@@ -139,7 +139,8 @@ void rpn_Symbol(struct Expression *expr, char *tzSym)
|
||||
expr->isSymbol = true;
|
||||
|
||||
sym_Ref(tzSym);
|
||||
makeUnknown(expr, "'%s' is not defined", tzSym);
|
||||
makeUnknown(expr, "'%s' is not constant at assembly time",
|
||||
tzSym);
|
||||
expr->nRPNPatchSize += 5; /* 1-byte opcode + 4-byte symbol ID */
|
||||
|
||||
size_t nameLen = strlen(tzSym) + 1; /* Don't forget NUL! */
|
||||
|
||||
Reference in New Issue
Block a user