--- linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h 2017/06/05 18:40:18 3277 +++ linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h 2017/06/27 22:19:19 3293 @@ -432,6 +432,18 @@ InstrumentScriptVM* m_vm; }; + class InstrumentScriptVMFunction_fork : public VMIntResultFunction { + public: + InstrumentScriptVMFunction_fork(InstrumentScriptVM* parent); + int minRequiredArgs() const { return 0; } + int maxAllowedArgs() const { return 2; } + 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); + protected: + InstrumentScriptVM* m_vm; + }; + } // namespace LinuxSampler #endif // LS_INSTRSCRIPTVMFUNCTIONS_H