Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Let xbt_die die with an exception so that we get the backtrace without having to...
[simgrid.git] / include / xbt / sysdep.h
index 2fcad47..1c3fcd5 100644 (file)
 #include "xbt/asserts.h"
   
 SG_BEGIN_DECL()
+/* They live in asserts.h, but need to be declared before this module.
+   double declaration to cut dependency cycle */
+
+void xbt_abort(void) _XBT_GNUC_NORETURN;
+void xbt_die(const char *msg) _XBT_GNUC_NORETURN;
+
 
 /** @addtogroup XBT_syscall
  *  @brief Malloc and associated functions, killing the program on error (with \ref XBT_ex)