sq_set

Squirrel 2.2

sq_set

SQRESULT sq_set(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.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target object in the stack

return:

a SQRESULT

remarks:

this call will invoke the delegation system like a normal assignment, it only works on tables, arrays and userdata.