Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove a useless C -> C++ function
[simgrid.git] / src / xbt / xbt_main.cpp
index 026641b..945304e 100644 (file)
@@ -13,6 +13,7 @@
 #include "simgrid_config.h"
 #include "xbt/sysdep.h"
 #include "xbt/log.h"
+#include "xbt/log.hpp"
 #include "xbt/dynar.h"
 #include "xbt/config.h"
 
@@ -129,7 +130,7 @@ static void xbt_postexit(void)
 /** @brief Initialize the xbt mechanisms. */
 void xbt_init(int *argc, char **argv)
 {
-  xbt_set_terminate();
+  simgrid::xbt::installExceptionHandler();
 
   if (xbt_initialized++) {
     XBT_DEBUG("XBT was initialized %d times.", xbt_initialized);