Use std::string for macro args

This commit is contained in:
Rangi42 committed 2024-03-02 05:23:15 -05:00
1 parent b130c2e27c
commit 2069a95e0f
5 files changed
+14 -26

No files matched your search

+1 -3
View File
@@ -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;