Skip to content

Commit

Permalink
ext/MiniScript: synced MiniScript
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdr committed Jan 13, 2024
1 parent 365ecae commit 25b35c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/miniscript/src/miniscript/miniscript/MiniScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2317,12 +2317,16 @@ const string MiniScript::doStatementPreProcessing(const string& processedStateme
Method* postfixOperatorMethod { nullptr };
//
{
// resolve method
method = getOperatorMethod(nextOperators.operator_);
if (method == nullptr) {
_Console::println(getStatementInformation(statement) + ": operator @" + to_string(nextOperators.idx) + ": no operator method found");
scriptValid = false;
return preprocessedStatement;
}
// default for methods with 1 argument is post fix operator method
postfixOperatorMethod = method;
//
// special case prefix or postfix operator methods, that have 1 argument only
if (method->getOperator() == OPERATOR_POSTFIX_INCREMENT ||
method->getOperator() == OPERATOR_PREFIX_INCREMENT) {
Expand Down

0 comments on commit 25b35c5

Please sign in to comment.