mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 03:02:06 +00:00
Print special message when PC is not constant
This commit is contained in:
@@ -139,7 +139,9 @@ void rpn_Symbol(struct Expression *expr, char *tzSym)
|
|||||||
expr->isSymbol = true;
|
expr->isSymbol = true;
|
||||||
|
|
||||||
sym_Ref(tzSym);
|
sym_Ref(tzSym);
|
||||||
makeUnknown(expr, "'%s' is not constant at assembly time",
|
makeUnknown(expr, strcmp(tzSym, "@")
|
||||||
|
? "'%s' is not constant at assembly time"
|
||||||
|
: "PC is not constant at assembly time",
|
||||||
tzSym);
|
tzSym);
|
||||||
expr->nRPNPatchSize += 5; /* 1-byte opcode + 4-byte symbol ID */
|
expr->nRPNPatchSize += 5; /* 1-byte opcode + 4-byte symbol ID */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user