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 |