sq_rawget

Squirrel 3.0

sq_rawget

SQRESULT sq_rawget(HSQUIRRELVM v, SQInteger idx);

pops a key from the stack and performs a get operation on the object at position idx in the stack, without employing delegation or metamethods.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target object in the stack

return:

a SQRESULT

remarks:

Only works on tables and arrays.