7 SQUserData(
SQSharedState *ss){ _delegate = 0; _hook = NULL; INIT_CHAIN(); ADD_TO_CHAIN(&_ss(
this)->_gc_chain,
this); }
10 REMOVE_FROM_CHAIN(&_ss(
this)->_gc_chain,
this);
21 #ifndef NO_GARBAGE_COLLECTOR 23 void Finalize(){SetDelegate(NULL);}
24 SQObjectType GetType(){
return OT_USERDATA;}
27 if (_hook) _hook((SQUserPointer)sq_aligning(
this + 1),_size);
28 SQInteger tsize = _size;
30 SQ_FREE(
this, sq_aligning(
sizeof(
SQUserData)) + tsize);
36 SQUserPointer _typetag =
nullptr;
40 #endif //_SQUSERDATA_H_ Definition: sqobject.h:339
Definition: squserdata.h:5
Definition: sqobject.h:313