git.s-ol.nu ~forks/DiligentCore / 949df6b
DILIGENT_BEGIN_INTERFACE1 helper s-ol a month ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6868 } Iface; \
6969 struct Iface##Methods
7070
71 # define DILIGENT_BEGIN_INTERFACE1(Iface) \
72 typedef struct Iface \
73 { \
74 struct Iface##Vtbl* pVtbl; \
75 } Iface; \
76 struct Iface##Methods
77
7178 # define DEFAULT_VALUE(x)
7279
7380 # define CALL_IFACE_METHOD(Iface, Method, This, ...) (This)->pVtbl->Iface.Method((I##Iface*)(This), ##__VA_ARGS__)
95102
96103 # define DILIGENT_BEGIN_INTERFACE(Name, Base) struct Name : public Base
97104
105 # define DILIGENT_BEGIN_INTERFACE1(Name) struct Name
106
98107 # define DEFAULT_VALUE(x) = x
99108
100109 #endif