sq_gettop

Squirrel 3.0

sq_gettop

SQInteger sq_gettop(HSQUIRRELVM v);

returns the index of the top of the stack

parameters:
HSQUIRRELVM v

the target VM

return:

an integer representing the index of the top of the stack