mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 09:59:32 -06:00
Merge pull request #13315 from jordan-woyak/func-exp-cleanup
InputCommon/ExpressionParser: Function argument parsing minor cleanup.
This commit is contained in:
@ -786,12 +786,13 @@ private:
|
||||
|
||||
// Comma before the next argument.
|
||||
if (TOK_COMMA != tok.type)
|
||||
return ParseResult::MakeErrorResult(tok, Common::GetStringT("Expected comma."));
|
||||
return ParseResult::MakeErrorResult(tok, Common::GetStringT("Expected closing paren."));
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
const auto argument_validation = func->SetArguments(std::move(args));
|
||||
func->SetArguments(std::move(args));
|
||||
const auto argument_validation = func->ValidateArguments();
|
||||
|
||||
if (std::holds_alternative<FunctionExpression::ExpectedArguments>(argument_validation))
|
||||
{
|
||||
|
Reference in New Issue
Block a user