sq_wakeupvm

Squirrel 2.2

sq_wakeupvm

HRESULT sq_wakeupvm(HSQUIRRELVM v, SQBool resumedret, SQBool retval, SQBool raiseerror, SQBool throwerror);

Wake up the execution a previously suspended virtual machine.

parameters:
HSQUIRRELVM v

the target VM

SQBool resumedret

if true the function will pop a value from the stack and use it as return value for the function that has previously suspended the virtual machine.

SQBool retval

if true the function will push the return value of the function that suspend the excution or the main function one.

SQBool raiseerror

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

SQBool throwerror

if true, the vm will thow an exception as soon as is resumed. the exception payload must be set beforehand invoking sq_thowerror().

return:

an HRESULT.