/[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 2935 by schoenebeck, Sun Jul 10 14:24:13 2016 UTC revision 2948 by schoenebeck, Fri Jul 15 15:29:04 2016 UTC
# Line 108  namespace LinuxSampler { Line 108  namespace LinuxSampler {
108          int minRequiredArgs() const { return 1; }          int minRequiredArgs() const { return 1; }
109          int maxAllowedArgs() const { return 1; }          int maxAllowedArgs() const { return 1; }
110          bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}          bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
111            bool modifiesArg(int iArg) const OVERRIDE { return false; }
112          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(int iArg) const { return INT_EXPR; }
113          ExprType_t returnType() { return INT_ARR_EXPR; }          ExprType_t returnType() { return INT_ARR_EXPR; }
114          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
# Line 123  namespace LinuxSampler { Line 124  namespace LinuxSampler {
124              void assignIntElement(uint i, int value) OVERRIDE {} // ignore assignment              void assignIntElement(uint i, int value) OVERRIDE {} // ignore assignment
125              VMExpr* resultValue() OVERRIDE { return this; }              VMExpr* resultValue() OVERRIDE { return this; }
126              StmtFlags_t resultFlags() { return flags; }              StmtFlags_t resultFlags() { return flags; }
127                bool isConstExpr() const OVERRIDE { return false; }
128          } m_result;          } m_result;
129    
130          VMFnResult* errorResult();          VMFnResult* errorResult();
# Line 197  namespace LinuxSampler { Line 199  namespace LinuxSampler {
199          bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}          bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
200          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(int iArg) const { return INT_EXPR; }
201          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
202        protected:
203            InstrumentScriptVM* m_vm;
204        };
205    
206        // overrides core wait() implementation
207        class InstrumentScriptVMFunction_wait : public CoreVMFunction_wait {
208        public:
209            InstrumentScriptVMFunction_wait(InstrumentScriptVM* parent);
210            VMFnResult* exec(VMFnArgs* args);
211        };
212    
213        class InstrumentScriptVMFunction_stop_wait : public VMEmptyResultFunction {
214        public:
215            InstrumentScriptVMFunction_stop_wait(InstrumentScriptVM* parent);
216            int minRequiredArgs() const { return 1; }
217            int maxAllowedArgs() const { return 2; }
218            bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR;}
219            ExprType_t argType(int iArg) const { return INT_EXPR; }
220            VMFnResult* exec(VMFnArgs* args);
221      protected:      protected:
222          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
223      };      };

Legend:
Removed from v.2935  
changed lines
  Added in v.2948

  ViewVC Help
Powered by ViewVC