Improve error message when a symbol is not constant

This commit is contained in:
ISSOtm committed 2020-02-10 02:51:48 +01:00
1 parent 5014f55c48
commit 4e8b34f42e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -269,7 +269,7 @@ uint32_t sym_GetConstantValue(char const *s)
if (sym_IsConstant(psym))
return getvaluefield(psym);
fatalerror("Expression must have a constant value");
fatalerror("\"%s\" does not have a constant value", s);
}
yyerror("'%s' not defined", s);
+1 -1
View File
@@ -1,4 +1,4 @@
ERROR: bracketed-symbols.asm(16):
Print types are only allowed for numbers
ERROR: bracketed-symbols.asm(20):
Expression must have a constant value
"Label" does not have a constant value