so that they are correctly listed with --help-log-categories.
It's a bit harsh, but I cannot imagine any other way to achieve this.
XBT_LOG_EXTERNAL_CATEGORY(child); \
XBT_LOG_EXTERNAL_CATEGORY(parent_cat); \
_XBT_LOGV(child).parent = &_XBT_LOGV(parent_cat); \
XBT_LOG_EXTERNAL_CATEGORY(child); \
XBT_LOG_EXTERNAL_CATEGORY(parent_cat); \
_XBT_LOGV(child).parent = &_XBT_LOGV(parent_cat); \
+ _xbt_log_cat_init(&_XBT_LOGV(child), xbt_log_priority_uninitialized); \
} else ((void)0)
#else
# define _XBT_LOG_PARENT_INITIALIZER(parent) &_XBT_LOGV(parent)
} else ((void)0)
#else
# define _XBT_LOG_PARENT_INITIALIZER(parent) &_XBT_LOGV(parent)
XBT_LOG_EXTERNAL_CATEGORY(child); \
XBT_LOG_EXTERNAL_CATEGORY(parent_cat); \
xbt_assert(_XBT_LOGV(child).parent == &_XBT_LOGV(parent_cat)); \
XBT_LOG_EXTERNAL_CATEGORY(child); \
XBT_LOG_EXTERNAL_CATEGORY(parent_cat); \
xbt_assert(_XBT_LOGV(child).parent == &_XBT_LOGV(parent_cat)); \
+ _xbt_log_cat_init(&_XBT_LOGV(child), xbt_log_priority_uninitialized); \