sq_resurrectunreachable

Squirrel 3.0

sq_resurrectunreachable

SQRESULT sq_resurrectunreachable(HSQUIRRELVM v);

runs the garbage collector and pushes an array in the stack containing all unreachable object found. If no unreachable object is found, null is pushed instead. This function is meant to help debugging reference cycles.

parameters:
HSQUIRRELVM v

the target VM

remarks:

this api only works with gabage collector builds (NO_GARBAGE_COLLECTOR is not defined)