sq_resume

Squirrel 2.2

sq_resume

SQRESULT sq_resume(HSQUIRRELVM v, SQBool retval, SQBool raiseerror);

resumes the generator at the top position of the stack.

parameters:
HSQUIRRELVM v

the target VM

SQBool retval

if true the function will push the return value in the stack

SQBool raiseerror

if true, if a runtime error occurs during the execution of the call, the vm will invoke the error handler.

return:

a SQRESULT

remarks:

if retval != 0 the return value of the generator is pushed.