sq_deleteslot

Squirrel 2.2

sq_deleteslot

SQRESULT sq_deleteslot(HSQUIRRELVM v, SQInteger idx, SQBool pushval);

pops a key from the stack and delete the slot indexed by it from the table at position idx in the stack, if the slot does not exits nothing happens.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target table in the stack

SQBool pushval

if this param is true the function will push the value of the deleted slot.

return:

a SQRESULT

remarks:

invoke the _delslot metamethod in the table delegate. it only works on tables.