mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Improve error message when a symbol is not constant
This commit is contained in:
@@ -269,7 +269,7 @@ uint32_t sym_GetConstantValue(char const *s)
|
|||||||
if (sym_IsConstant(psym))
|
if (sym_IsConstant(psym))
|
||||||
return getvaluefield(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);
|
yyerror("'%s' not defined", s);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
ERROR: bracketed-symbols.asm(16):
|
ERROR: bracketed-symbols.asm(16):
|
||||||
Print types are only allowed for numbers
|
Print types are only allowed for numbers
|
||||||
ERROR: bracketed-symbols.asm(20):
|
ERROR: bracketed-symbols.asm(20):
|
||||||
Expression must have a constant value
|
"Label" does not have a constant value
|
||||||
|
|||||||
Reference in New Issue
Block a user