--- linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h 2017/05/30 15:43:39 3255 +++ linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h 2017/06/05 18:40:18 3277 @@ -420,6 +420,18 @@ InstrumentScriptVM* m_vm; }; + class InstrumentScriptVMFunction_abort : public VMEmptyResultFunction { + public: + InstrumentScriptVMFunction_abort(InstrumentScriptVM* parent); + int minRequiredArgs() const { return 1; } + int maxAllowedArgs() const { return 1; } + bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR; } + ExprType_t argType(int iArg) const { return INT_EXPR; } + VMFnResult* exec(VMFnArgs* args) OVERRIDE; + protected: + InstrumentScriptVM* m_vm; + }; + } // namespace LinuxSampler #endif // LS_INSTRSCRIPTVMFUNCTIONS_H