sq_gethash

Squirrel 3.0

sq_gethash

SQHash sq_gethash(HSQUIRRELVM v, SQInteger idx);

returns the hash key of a value at the idx position in the stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

an index in the stack

return:

the hash key of the value at the position idx in the stack

remarks:

the hash value function is the same used by the VM.