Fix not being able to use two multi-line macros after another

This commit is contained in:
Jan
2023-12-24 00:21:36 +01:00
parent 9c80332147
commit 3ad2414754
2 changed files with 59 additions and 2 deletions

View File

@ -7,6 +7,7 @@
#include "Parsing/Simple/SimpleExpressionInterpreter.h"
#include "Utils/ClassUtils.h"
#include <iostream>
#include <regex>
#include <sstream>
#include <utility>
@ -581,9 +582,11 @@ void DefinesStreamProxy::ExtractParametersFromDefineUsage(const ParserLine& line
if (line.m_line[parameterStart] != '(')
return;
m_macro_parameters = std::vector<std::string>();
m_macro_bracket_depth = std::stack<char>();
m_macro_parameter_state = ParameterState::AFTER_OPEN;
m_macro_parameters = std::vector<std::string>();
m_current_macro_parameter.clear();
m_current_macro_parameter.str(std::string());
m_macro_bracket_depth = std::stack<char>();
parameterEnd = parameterStart + 1;
ContinueMacroParameters(line, parameterEnd);