mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 04:05:38 +00:00
Use std::string for macro args
This commit is contained in:
1 parent
b130c2e27c
commit
2069a95e0f
5 files changed
+14
-26
No files matched your search
+1
-3
@@ -239,10 +239,8 @@ bool yywrap()
|
||||
|
||||
lexer_CleanupState(oldContext.lexerState);
|
||||
// Restore args if a macro (not REPT) saved them
|
||||
if (oldContext.fileInfo->type == NODE_MACRO) {
|
||||
macro_GetCurrentArgs()->clear();
|
||||
if (oldContext.fileInfo->type == NODE_MACRO)
|
||||
macro_UseNewArgs(contextStack.top().macroArgs);
|
||||
}
|
||||
// Free the file stack node
|
||||
if (!oldContext.fileInfo->referenced)
|
||||
delete oldContext.fileInfo;
|
||||
|
||||
Reference in new issue
Block a user