sq_gettop

Squirrel 2.2

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