|
CX Framework
Cross-platform C utility framework
|
#include <objclass.h>
Public Member Functions | |
| atomic (uintptr) _ref | |
| Reference count for memory management. | |
| atomic (ptr) _weakref | |
| Associated weak reference object (NULL if none exist) | |
Data Fields | |
| ObjClassInfo * | _clsinfo |
| Pointer to class metadata. | |
Base structure for all object instances
ObjInst is the implicit base class for all objects in the CX object system. Every class instance begins with these fields, allowing generic handling of objects regardless of their specific class type.
The structure uses a union trick with _is_ObjInst to enable compile-time type checking in macros while maintaining C compatibility.
Definition at line 96 of file objclass.h.