mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 04:05:38 +00:00
Add more test coverage for RGBASM (#1256)
This also fixes two bugs: `-1 >>> 32` was -1 not 0, and `macro_FreeArgs` should have been called but wasn't.
This commit is contained in:
1 parent
b46aa0f55b
commit
cee3d1c859
51 files changed
+238
-80
No files matched your search
+3
-1
@@ -272,8 +272,10 @@ bool yywrap(void)
|
||||
|
||||
lexer_DeleteState(context->lexerState);
|
||||
// Restore args if a macro (not REPT) saved them
|
||||
if (context->fileInfo->type == NODE_MACRO)
|
||||
if (context->fileInfo->type == NODE_MACRO) {
|
||||
macro_FreeArgs(macro_GetCurrentArgs());
|
||||
macro_UseNewArgs(contextStack->macroArgs);
|
||||
}
|
||||
// Free the file stack node
|
||||
if (!context->fileInfo->referenced)
|
||||
free(context->fileInfo);
|
||||
|
||||
Reference in new issue
Block a user