/[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 3227 by schoenebeck, Fri Jun 13 15:01:06 2014 UTC revision 3228 by schoenebeck, Sun May 28 14:46:14 2017 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 2014 Christian Schoenebeck   * Copyright (c) 2014 - 2017 Christian Schoenebeck
3   *   *
4   * http://www.linuxsampler.org   * http://www.linuxsampler.org
5   *   *
# Line 30  namespace LinuxSampler { namespace gig { Line 30  namespace LinuxSampler { namespace gig {
30          ExprType_t argType(int iArg) const { return INT_EXPR; }          ExprType_t argType(int iArg) const { return INT_EXPR; }
31          VMFnResult* exec(VMFnArgs* args);          VMFnResult* exec(VMFnArgs* args);
32      protected:      protected:
33            InstrumentScriptVM* m_vm;
34        };
35    
36        /**
37         * Built-in script function:
38         *
39         *     same_region(key1, key2)
40         */
41        class InstrumentScriptVMFunction_same_region : public VMIntResultFunction {
42        public:
43            InstrumentScriptVMFunction_same_region(InstrumentScriptVM* parent);
44            int minRequiredArgs() const { return 2; }
45            int maxAllowedArgs() const { return 2; }
46            bool acceptsArgType(int iArg, ExprType_t type) const { return INT_EXPR; }
47            ExprType_t argType(int iArg) const { return INT_EXPR; }
48            VMFnResult* exec(VMFnArgs* args);
49        protected:
50          InstrumentScriptVM* m_vm;          InstrumentScriptVM* m_vm;
51      };      };
52    

Legend:
Removed from v.3227  
changed lines
  Added in v.3228

  ViewVC Help
Powered by ViewVC