CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
ObjInst Struct Reference

#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.
 

Detailed Description

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.


The documentation for this struct was generated from the following file: