mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Allow labels to be passed to DEF
This commit is contained in:
@@ -1316,9 +1316,6 @@ relocexpr_no_str : scoped_id { rpn_Symbol(&$$, $1); }
|
|||||||
} '(' scoped_id ')' {
|
} '(' scoped_id ')' {
|
||||||
struct sSymbol const *sym = sym_FindSymbol($4);
|
struct sSymbol const *sym = sym_FindSymbol($4);
|
||||||
|
|
||||||
if (sym && !(sym_IsDefined(sym) && sym->type != SYM_LABEL))
|
|
||||||
yyerror("Label \"%s\" is not a valid argument to DEF",
|
|
||||||
$4);
|
|
||||||
rpn_Number(&$$, !!sym);
|
rpn_Number(&$$, !!sym);
|
||||||
|
|
||||||
oDontExpandStrings = false;
|
oDontExpandStrings = false;
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
ERROR: pc-def.asm(1):
|
|
||||||
Label "@" is not a valid argument to DEF
|
|
||||||
error: Assembly aborted (1 errors)!
|
|
||||||
|
|||||||
Reference in New Issue
Block a user