From: Martin Quinson Date: Wed, 10 Aug 2016 17:29:21 +0000 (+0200) Subject: remove a useless C -> C++ function X-Git-Tag: v3_14~589 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5826c2dea3a9a0d929eed630fb0c84c41015bc3d?ds=sidebyside remove a useless C -> C++ function --- diff --git a/include/xbt/log.h b/include/xbt/log.h index 837829f1ab..4c24f32120 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -659,7 +659,5 @@ extern xbt_log_layout_t xbt_log_default_layout; */ #define XBT_HERE(...) XBT_LOG(xbt_log_priority_trace, "-- was here" __VA_ARGS__) -XBT_PUBLIC(void) xbt_set_terminate(); - SG_END_DECL() #endif /* ! _XBT_LOG_H_ */ diff --git a/src/xbt/exception.cpp b/src/xbt/exception.cpp index 2f5e882aca..ad829c2169 100644 --- a/src/xbt/exception.cpp +++ b/src/xbt/exception.cpp @@ -132,8 +132,3 @@ void installExceptionHandler() } } - -void xbt_set_terminate() -{ - simgrid::xbt::installExceptionHandler(); -} diff --git a/src/xbt/xbt_main.cpp b/src/xbt/xbt_main.cpp index 026641b33b..945304e143 100644 --- a/src/xbt/xbt_main.cpp +++ b/src/xbt/xbt_main.cpp @@ -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);