X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b3a5b32a673e51a66c380cb2722893e0a298944c..89782b59c2b44de658a46b7f6262075b723cf9b1:/src/instr/instr_interface.c diff --git a/src/instr/instr_interface.c b/src/instr/instr_interface.c index 56cfd6a0eb..a32e80c0a0 100644 --- a/src/instr/instr_interface.c +++ b/src/instr/instr_interface.c @@ -28,6 +28,12 @@ void TRACE_category_with_color (const char *category, const char *color) if (!TRACE_is_active()) return; + { + //check if hosts have been created + xbt_assert1 (hosts_types != NULL && xbt_dict_length(hosts_types) != 0, + "%s must be called after environment creation", __FUNCTION__); + } + //check if category is already created char *created = xbt_dict_get_or_null(created_categories, category); if (created) return;