sq_getthread

Squirrel 3.0

sq_getthread

SQRESULT sq_getthread(HSQUIRRELVM v, SQInteger idx, HSQUIRRELVM* v);

gets a a pointer to the thread the idx position in the stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

an index in the stack

HSQUIRRELVM* v

A pointer to the variable that will store the thread pointer

return:

a SQRESULT