1 |
/* |
/* |
2 |
* Copyright (c) 2014 Christian Schoenebeck |
* Copyright (c) 2014 - 2017 Christian Schoenebeck |
3 |
* |
* |
4 |
* http://www.linuxsampler.org |
* http://www.linuxsampler.org |
5 |
* |
* |
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 |
|
|