Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
renamed xbt_(*.[ch]) to \1.
[simgrid.git] / src / xbt / error.c
index af455a8..9cf52d5 100644 (file)
@@ -8,7 +8,7 @@
 /* This program is free software; you can redistribute it and/or modify it
    under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include "gras_private.h"
+#include "xbt/error.h"
 
 /**
  * gras_error_name:
@@ -34,3 +34,11 @@ const char *gras_error_name(gras_error_t errcode)  {
    }
 }
 
+GRAS_LOG_EXTERNAL_CATEGORY(gras);
+GRAS_LOG_DEFAULT_CATEGORY(gras);
+  
+void gras_die (const char *msg) {
+   CRITICAL1("%s",msg);
+   gras_abort();
+}
+