/[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 2964 by schoenebeck, Thu Jul 14 00:22:26 2016 UTC revision 2965 by schoenebeck, Mon Jul 18 09:42:28 2016 UTC
# Line 214  public: Line 214  public:
214      VMFnResult* exec(VMFnArgs* args);      VMFnResult* exec(VMFnArgs* args);
215  };  };
216    
217    /**
218     * Implements the built-in sh_left() script function.
219     */
220    class CoreVMFunction_sh_left : public VMIntResultFunction {
221    public:
222        int minRequiredArgs() const { return 2; }
223        int maxAllowedArgs() const { return 2; }
224        bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR; }
225        ExprType_t argType(int iArg) const { return INT_EXPR; }
226        VMFnResult* exec(VMFnArgs* args);
227    };
228    
229    /**
230     * Implements the built-in sh_right() script function.
231     */
232    class CoreVMFunction_sh_right : public VMIntResultFunction {
233    public:
234        int minRequiredArgs() const { return 2; }
235        int maxAllowedArgs() const { return 2; }
236        bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR; }
237        ExprType_t argType(int iArg) const { return INT_EXPR; }
238        VMFnResult* exec(VMFnArgs* args);
239    };
240    
241  } // namespace LinuxSampler  } // namespace LinuxSampler
242    
243  #endif // LS_COREVMFUNCTIONS_H  #endif // LS_COREVMFUNCTIONS_H

Legend:
Removed from v.2964  
changed lines
  Added in v.2965

  ViewVC Help
Powered by ViewVC