CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
objiface.h File Reference

Interface definitions and management for the object system. More...

#include <cx/cx.h>
#include <cx/container/sarray.h>

Go to the source code of this file.

Data Structures

struct  ObjIface
 

Macros

#define objIfTmplName(iface)   iface##_tmpl
 
#define objIfImport(iface)   extern iface objIfTmplName(iface)
 
#define objIfCheck(iface)   static_assert(((iface)->_implements, (iface)->_size, offsetof(*(iface), _parent) == offsetof(ObjIface, _parent)), "Not an interface")
 
#define objIfBase(iface)   ((ObjIface*)((iface)->_implements, (iface)->_parent, (iface)->_size, (iface)))
 

Typedefs

typedef struct ObjIface ObjIface
 

Detailed Description

Interface definitions and management for the object system.

Definition in file objiface.h.