sq_newmember |
SQRESULT sq_newmember(
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:
-
Invokes the _newmember metamethod in the class. it only works on classes.