/[svn]/linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3255 by schoenebeck, Tue May 30 15:43:39 2017 UTC revision 3296 by schoenebeck, Wed Jun 28 09:45:56 2017 UTC
# Line 401  namespace LinuxSampler { Line 401  namespace LinuxSampler {
401          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
402      };      };
403    
404        class InstrumentScriptVMFunction_callback_status : public VMIntResultFunction {
405        public:
406            InstrumentScriptVMFunction_callback_status(InstrumentScriptVM* parent);
407            int minRequiredArgs() const { return 1; }
408            int maxAllowedArgs() const { return 1; }
409            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
410            ExprType_t argType(int iArg) const { return INT_EXPR; }
411            VMFnResult* exec(VMFnArgs* args);
412        protected:
413            InstrumentScriptVM* m_vm;
414        };
415    
416      // overrides core wait() implementation      // overrides core wait() implementation
417      class InstrumentScriptVMFunction_wait : public CoreVMFunction_wait {      class InstrumentScriptVMFunction_wait : public CoreVMFunction_wait {
418      public:      public:
# Line 415  namespace LinuxSampler { Line 427  namespace LinuxSampler {
427          int maxAllowedArgs() const { return 2; }          int maxAllowedArgs() const { return 2; }
428          bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}          bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
429          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(int iArg) const { return INT_EXPR; }
430            VMFnResult* exec(VMFnArgs* args);
431        protected:
432            InstrumentScriptVM* m_vm;
433        };
434    
435        class InstrumentScriptVMFunction_abort : public VMEmptyResultFunction {
436        public:
437            InstrumentScriptVMFunction_abort(InstrumentScriptVM* parent);
438            int minRequiredArgs() const { return 1; }
439            int maxAllowedArgs() const { return 1; }
440            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR; }
441            ExprType_t argType(int iArg) const { return INT_EXPR; }
442            VMFnResult* exec(VMFnArgs* args) OVERRIDE;
443        protected:
444            InstrumentScriptVM* m_vm;
445        };
446    
447        class InstrumentScriptVMFunction_fork : public VMIntResultFunction {
448        public:
449            InstrumentScriptVMFunction_fork(InstrumentScriptVM* parent);
450            int minRequiredArgs() const { return 0; }
451            int maxAllowedArgs() const { return 2; }
452            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
453            ExprType_t argType(int iArg) const { return INT_EXPR; }
454          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
455      protected:      protected:
456          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;

Legend:
Removed from v.3255  
changed lines
  Added in v.3296

  ViewVC Help
Powered by ViewVC