sq_getclosureinfo

Squirrel 2.2

sq_getclosureinfo

SQRESULT sq_getclosureinfo(HSQUIRRELVM v, SQInteger idx, SQUnsignedInteger * nparams, SQUnsignedInteger * nfreevars);

retrieves number of parameters and number of freevariables from a squirrel closure.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target closure

SQUnsignedInteger * nparams

a pointer to an unsigned integer that will store the number of parameters

SQUnsignedInteger * nfreevars

a pointer to an unsigned integer that will store the number of free variables

return:

an SQRESULT