Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
It can happen that users put the call to MSG_config before the one to MSG_init (hello...
[simgrid.git] / src / msg / msg_config.c
index 811d1b5..7685c1a 100644 (file)
  * Example:
  * MSG_config("surf_workstation_model","KCCFLN05");
  */
-void MSG_config(const char *name, ...) 
-{
+void MSG_config(const char *name, ...) {
+  
+  if (!msg_global) {
+     fprintf(stderr, "ERROR: Please call MSG_init() before using MSG_config()\n");
+     abort();
+  }
+   
+   
   va_list pa;
   /*  xbt_cfg_dump("msg_cfg_set","",_msg_cfg_set);*/
   va_start(pa,name);