sq_getsize |
SQObjectType sq_getsize(
HSQUIRRELVM v, SQInteger idx)
;
returns the size of a value at the idx position in the stack
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- SQInteger idx
-
an index in the stack
- return:
-
the size of the value at the position idx in the stack
- remarks:
-
this function only works with strings,arrays,tables and userdata if the value is not one of those types the function will return –1