mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 09:18:36 +00:00
Merge pull request #13315 from jordan-woyak/func-exp-cleanup
InputCommon/ExpressionParser: Function argument parsing minor cleanup.
This commit is contained in:
commit
9ff833e2f4
3 changed files with 56 additions and 85 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue