/[svn]/linuxsampler/trunk/src/scriptvm/CoreVMFunctions.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/CoreVMFunctions.h

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

revision 2618 by schoenebeck, Fri Jun 6 12:38:54 2014 UTC revision 2619 by schoenebeck, Wed Jun 11 13:24:32 2014 UTC
# Line 106  protected: Line 106  protected:
106      ScriptVM* vm;      ScriptVM* vm;
107  };  };
108    
109    class CoreVMFunction_abs : public VMIntResultFunction {
110    public:
111        int minRequiredArgs() const { return 1; }
112        int maxAllowedArgs() const { return 1; }
113        bool acceptsArgType(int iArg, ExprType_t type) const;
114        ExprType_t argType(int iArg) const { return INT_EXPR; }
115        VMFnResult* exec(VMFnArgs* args);
116    };
117    
118    class CoreVMFunction_random : public VMIntResultFunction {
119    public:
120        int minRequiredArgs() const { return 2; }
121        int maxAllowedArgs() const { return 2; }
122        bool acceptsArgType(int iArg, ExprType_t type) const;
123        ExprType_t argType(int iArg) const { return INT_EXPR; }
124        VMFnResult* exec(VMFnArgs* args);
125    };
126    
127    class CoreVMFunction_num_elements : public VMIntResultFunction {
128    public:
129        int minRequiredArgs() const { return 1; }
130        int maxAllowedArgs() const { return 1; }
131        bool acceptsArgType(int iArg, ExprType_t type) const;
132        ExprType_t argType(int iArg) const { return INT_ARR_EXPR; }
133        VMFnResult* exec(VMFnArgs* args);
134    };
135    
136  } // namespace LinuxSampler  } // namespace LinuxSampler
137    
138  #endif // LS_COREVMFUNCTIONS_H  #endif // LS_COREVMFUNCTIONS_H

Legend:
Removed from v.2618  
changed lines
  Added in v.2619

  ViewVC Help
Powered by ViewVC