912 |
/////////////////////////////////////////////////////////////////////////// |
/////////////////////////////////////////////////////////////////////////// |
913 |
// built-in script function: search() |
// built-in script function: search() |
914 |
|
|
|
ExprType_t CoreVMFunction_search::argType(vmint iArg) const { |
|
|
return (iArg == 0) ? INT_ARR_EXPR : INT_EXPR; |
|
|
} |
|
|
|
|
915 |
bool CoreVMFunction_search::acceptsArgType(vmint iArg, ExprType_t type) const { |
bool CoreVMFunction_search::acceptsArgType(vmint iArg, ExprType_t type) const { |
916 |
if (iArg == 0) |
if (iArg == 0) |
917 |
return isArray(type); |
return isArray(type); |
971 |
/////////////////////////////////////////////////////////////////////////// |
/////////////////////////////////////////////////////////////////////////// |
972 |
// built-in script function: sort() |
// built-in script function: sort() |
973 |
|
|
|
ExprType_t CoreVMFunction_sort::argType(vmint iArg) const { |
|
|
return (iArg == 0) ? INT_ARR_EXPR : INT_EXPR; |
|
|
} |
|
|
|
|
974 |
bool CoreVMFunction_sort::acceptsArgType(vmint iArg, ExprType_t type) const { |
bool CoreVMFunction_sort::acceptsArgType(vmint iArg, ExprType_t type) const { |
975 |
if (iArg == 0) |
if (iArg == 0) |
976 |
return isArray(type); |
return isArray(type); |