git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9170
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
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;
snprintf(valuestr, 100, "%g", value);
if (strcmp(what, "declare") == 0) {
+ {
+ //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__);
+ }
+
char new_type[INSTR_DEFAULT_STR_SIZE];
xbt_dict_cursor_t cursor = NULL;
char *type;