HawkTracer  0.10.0
event_macros_impl.h File Reference

Go to the source code of this file.

Macros

#define MKCREFLECT_DEFINE_GET_METHOD(TYPE_NAME, ...)
 
#define HT_EVENT_DEFINITIONS(TYPE_NAME, BASE_TYPE, ...)   HT_EVENT_DEFINITIONS_(TYPE_NAME, BASE_TYPE, __VA_ARGS__)
 

Macro Definition Documentation

◆ HT_EVENT_DEFINITIONS

#define HT_EVENT_DEFINITIONS (   TYPE_NAME,
  BASE_TYPE,
  ... 
)    HT_EVENT_DEFINITIONS_(TYPE_NAME, BASE_TYPE, __VA_ARGS__)

◆ MKCREFLECT_DEFINE_GET_METHOD

#define MKCREFLECT_DEFINE_GET_METHOD (   TYPE_NAME,
  ... 
)
Value:
MKCREFLECT_TypeInfo* mkcreflect_get_##TYPE_NAME##_type_info(void) \
{ \
static MKCREFLECT_FieldInfo fields_info[MKCREFLECT_FOREACH(MKCREFLECT_SUM, 0, __VA_ARGS__)] = \
{ \
MKCREFLECT_FOREACH(MKCREFLECT_FIELD_INFO, TYPE_NAME, __VA_ARGS__) \
}; \
static MKCREFLECT_TypeInfo type_info = \
{ \
#TYPE_NAME, \
MKCREFLECT_FOREACH(MKCREFLECT_SUM, 0, __VA_ARGS__), \
sizeof(TYPE_NAME), \
MKCREFLECT_FOREACH(MKCREFLECT_SIZEOF, 0, __VA_ARGS__), \
fields_info \
}; \
return &type_info; \
}
#define MKCREFLECT_SUM(...)
Definition: mkcreflect.h:160
Definition: mkcreflect.h:42
Definition: mkcreflect.h:29
#define MKCREFLECT_FIELD_INFO(X, USER_DATA)
Definition: mkcreflect.h:189
#define MKCREFLECT_FOREACH(FNC, USER_DATA,...)
Definition: mkcreflect.h:116