From 155040240dd49fc92a1986ae963759d715ae1bd2 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 21 Jan 2020 00:25:47 +0100 Subject: [PATCH] Improve error message when a symbol's value is not constant --- src/asm/rpn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asm/rpn.c b/src/asm/rpn.c index 3991becb..aa7d1e68 100644 --- a/src/asm/rpn.c +++ b/src/asm/rpn.c @@ -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! */