--- linuxsampler/trunk/src/scriptvm/tree.h 2017/07/15 12:02:21 3310 +++ linuxsampler/trunk/src/scriptvm/tree.h 2017/07/15 16:24:59 3311 @@ -37,6 +37,7 @@ STMT_BRANCH, STMT_LOOP, STMT_SYNC, + STMT_NOOP, }; class Node { @@ -300,7 +301,7 @@ class NoOperation : public Statement { public: NoOperation() : Statement() {} - StmtType_t statementType() const { return STMT_LEAF; } + StmtType_t statementType() const { return STMT_NOOP; } void dump(int level = 0) {} bool isPolyphonic() const { return false; } }; @@ -375,6 +376,13 @@ }; typedef Ref FunctionCallRef; +class NoFunctionCall : public FunctionCall { +public: + NoFunctionCall() : FunctionCall("nothing", new Args, NULL) {} + StmtType_t statementType() const { return STMT_NOOP; } +}; +typedef Ref NoFunctionCallRef; + class EventHandler : virtual public Statements, virtual public VMEventHandler { StatementsRef statements; bool usingPolyphonics;