sq_suspendvm

Squirrel 2.2

sq_suspendvm

HRESULT sq_suspendvm(HSQUIRRELVM v);

Suspends the execution of the specified vm.

parameters:
HSQUIRRELVM v

the target VM

return:

an SQRESULT(that has to be returned by a C function)

remarks:

sq_result can only be called as return expression of a C function. The function will fail is the suspension is done through more C calls or in a metamethod.

eg.
SQInteger suspend_vm_example(HSQUIRRELVM v)
{
	return sq_suspendvm(v);
}