sq_readclosure

Squirrel 2.2

sq_readclosure

SQRESULT sq_readclosure(HSQUIRRELVM v, SQREADFUNC readf, SQUserPointer up);

serialize (read) a closure and pushes it on top of the stack, the source is user defined through a read callback.

parameters:
HSQUIRRELVM v

the target VM

SQREADFUNC readf

pointer to a read function that will be invoked by the vm during the serialization.

SQUserPointer up

pointer that will be passed to each call to the read function

return:

a SQRESULT