mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-08-20 05:54:29 +00:00
fix(parser): allow empty final macro arguments (#948)
Treat a trailing comma as an empty parameter.
This commit is contained in:
@@ -933,7 +933,8 @@ void DefinesStreamProxy::ContinueMacroParameters(
|
||||
}
|
||||
else if (state.m_parameter_state == ParameterState::AFTER_COMMA)
|
||||
{
|
||||
throw ParsingException(CreatePos(line, linePos), "Cannot close macro parameters after comma");
|
||||
state.m_parameters.emplace_back();
|
||||
state.m_parameter_state = ParameterState::NOT_IN_PARAMETERS;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user