sq_rawnewmember

Squirrel 3.0

sq_rawnewmember

SQRESULT sq_rawnewmember(HSQUIRRELVM v, SQInteger idx, SQBool bstatic);

pops a key, a value and an object(that will be set as attribute of the member) from the stack and performs a new slot operation on the class that is at position idx in the stack, if the slot does not exits it will be created.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target table in the stack

SQBool bstatic

if SQTrue creates a static member.

return:

a SQRESULT

remarks:

it only works on classes.