mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +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))
|
||||
return getvaluefield(psym);
|
||||
|
||||
fatalerror("Expression must have a constant value");
|
||||
fatalerror("\"%s\" does not have a constant value", s);
|
||||
}
|
||||
|
||||
yyerror("'%s' not defined", s);
|
||||
|
||||
Reference in New Issue
Block a user