sq_reservestack

Squirrel 3.0

sq_reservestack

SQRESULT sq_reservestack(HSQUIRRELVM v, SQInteger nsize);

ensure that the stack space left is at least of a specified size.If the stack is smaller it will automatically grow. if there's a memtamethod currently running the function will fail and the stack will not be resized, this situatuation has to be considered a "stack overflow".

parameters:
HSQUIRRELVM v

the target VM

SQInteger nsize

required stack size

return:

a SQRESULT