XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_api, instr, "API");
-xbt_dict_t created_categories;
-
void TRACE_category(const char *category)
{
TRACE_category_with_color (category, NULL);
void TRACE_category_with_color (const char *category, const char *color)
{
- if (!TRACE_is_active())
+ if (!(TRACE_is_active() && category != NULL))
return;
xbt_assert1 (instr_platform_traced(),