sq_getobjtypetag

Squirrel 3.0

sq_getobjtypetag

SQRESULT sq_getobjtypetag(HSQOBJECT * o, SQUserPointer * typetag);

gets the typetag of a raw object reference(userdata or class).

parameters:
HSQOBJECT * o

pointer to an object handler

SQUserPointer * typetag

a pointer to the variable that will store the tag

return:

a SQRESULT

remarks:

the function works also with instances. if the taget object is an instance, the typetag of it's base class is fetched.