shithub: rgbds

Download patch

ref: 155040240dd49fc92a1986ae963759d715ae1bd2
parent: d466cab1e8aca877e9fd89433f19cec78f894a99
author: ISSOtm <[email protected]>
date: Mon Jan 20 19:25:47 EST 2020

Improve error message when a symbol's value is not constant

--- a/src/asm/rpn.c
+++ b/src/asm/rpn.c
@@ -139,7 +139,8 @@
 		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! */