sq_getweakrefval

Squirrel 3.0

sq_getweakrefval

SQRESULT sq_getweakrefval(HSQUIRRELVM v, SQInteger idx);

pushes the object pointed by the weak reference at position idx in the stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target weak reference

return:

a SQRESULT

remarks:

if the function fails, nothing is pushed in the stack.