218 |
}; |
}; |
219 |
|
|
220 |
/** |
/** |
221 |
|
* Implements the built-in in_range() script function. |
222 |
|
*/ |
223 |
|
class CoreVMFunction_in_range : public VMIntResultFunction { |
224 |
|
public: |
225 |
|
int minRequiredArgs() const { return 3; } |
226 |
|
int maxAllowedArgs() const { return 3; } |
227 |
|
bool acceptsArgType(int iArg, ExprType_t type) const { return type == INT_EXPR; } |
228 |
|
ExprType_t argType(int iArg) const { return INT_EXPR; } |
229 |
|
VMFnResult* exec(VMFnArgs* args); |
230 |
|
}; |
231 |
|
|
232 |
|
/** |
233 |
* Implements the built-in sh_left() script function. |
* Implements the built-in sh_left() script function. |
234 |
*/ |
*/ |
235 |
class CoreVMFunction_sh_left : public VMIntResultFunction { |
class CoreVMFunction_sh_left : public VMIntResultFunction { |