sq_rawset |
SQRESULT sq_rawset(
HSQUIRRELVM v, SQInteger idx)
;
pops a key and a value from the stack and performs a set operation on the object at position idx in the stack, without employing delegation or metamethods.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- SQInteger idx
-
index of the target object in the stack
- return:
-
a SQRESULT
- remarks:
-
it only works on tables and arrays. if the function fails nothing will be pushed in the stack.