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

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

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

revision 3556 by schoenebeck, Sun May 28 14:46:14 2017 UTC revision 3557 by schoenebeck, Sun Aug 18 00:06:04 2019 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 2014 - 2017 Christian Schoenebeck   * Copyright (c) 2014 - 2019 Christian Schoenebeck
3   *   *
4   * http://www.linuxsampler.org   * http://www.linuxsampler.org
5   *   *
# Line 24  namespace LinuxSampler { namespace gig { Line 24  namespace LinuxSampler { namespace gig {
24      class InstrumentScriptVMFunction_gig_set_dim_zone : public VMEmptyResultFunction {      class InstrumentScriptVMFunction_gig_set_dim_zone : public VMEmptyResultFunction {
25      public:      public:
26          InstrumentScriptVMFunction_gig_set_dim_zone(InstrumentScriptVM* parent);          InstrumentScriptVMFunction_gig_set_dim_zone(InstrumentScriptVM* parent);
27          int minRequiredArgs() const { return 3; }          vmint minRequiredArgs() const OVERRIDE { return 3; }
28          int maxAllowedArgs() const { return 3; }          vmint maxAllowedArgs() const OVERRIDE { return 3; }
29          bool acceptsArgType(int iArg, ExprType_t type) const;          bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
30          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }
31          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args) OVERRIDE;
32      protected:      protected:
33          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
34      };      };
# Line 41  namespace LinuxSampler { namespace gig { Line 41  namespace LinuxSampler { namespace gig {
41      class InstrumentScriptVMFunction_same_region : public VMIntResultFunction {      class InstrumentScriptVMFunction_same_region : public VMIntResultFunction {
42      public:      public:
43          InstrumentScriptVMFunction_same_region(InstrumentScriptVM* parent);          InstrumentScriptVMFunction_same_region(InstrumentScriptVM* parent);
44          int minRequiredArgs() const { return 2; }          vmint minRequiredArgs() const OVERRIDE { return 2; }
45          int maxAllowedArgs() const { return 2; }          vmint maxAllowedArgs() const OVERRIDE { return 2; }
46          bool acceptsArgType(int iArg, ExprType_t type) const { return INT_EXPR; }          bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return INT_EXPR; }
47          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }
48          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args) OVERRIDE;
49      protected:      protected:
50          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
51      };      };

Legend:
Removed from v.3556  
changed lines
  Added in v.3557

  ViewVC Help
Powered by ViewVC