A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[trace] new callback to end of platform parsing
[simgrid.git]
/
src
/
instr
/
instr_interface.c
diff --git
a/src/instr/instr_interface.c
b/src/instr/instr_interface.c
index
56cfd6a
..
a32e80c
100644
(file)
--- 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;
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;
//check if category is already created
char *created = xbt_dict_get_or_null(created_categories, category);
if (created) return;