sq_setattributes

Squirrel 2.2

sq_setattributes

SQRESULT sq_setattributes(HSQUIRRELVM v, SQInteger idx);

Sets the attribute of a class mameber. The function pops a key and a value from the stack and sets the attribute (indexed by they key) on the class at position idx in the stack. If key is null the function sets the class level attribute. If the function succeed, the old attribute value is pushed in the stack.

parameters:
HSQUIRRELVM v

the target VM

SQInteger idx

index of the target class in the stack.

return:

a SQRESULT