mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 19:22:05 +00:00
Report only one error when invalid shift has argument
Not to mention that incrementing a variable in a loop is kinda dumb.
This commit is contained in:
@@ -579,13 +579,8 @@ assert : T_POP_ASSERT assert_type relocexpr
|
||||
}
|
||||
;
|
||||
|
||||
shift : T_POP_SHIFT { macro_ShiftCurrentArgs(); }
|
||||
| T_POP_SHIFT uconst
|
||||
{
|
||||
int32_t i = $2;
|
||||
while (i--)
|
||||
macro_ShiftCurrentArgs();
|
||||
}
|
||||
shift : T_POP_SHIFT { macro_ShiftCurrentArgs(1); }
|
||||
| T_POP_SHIFT uconst { macro_ShiftCurrentArgs($2); }
|
||||
;
|
||||
|
||||
load : T_POP_LOAD string ',' sectiontype sectorg sectattrs {
|
||||
|
||||
Reference in New Issue
Block a user