Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / common / assert.c
index 056e2f261a7cb81b3a0361cf7d28d0648ef9f831..1cc1dbaa2e5f9a9bfe520ad60afd569885672da1 100644 (file)
@@ -20,6 +20,8 @@
  * SOFTWARE.
  */
 
+#include <stdio.h>
+
 #include "common/assert.h"
 #include "common/common.h"
 
@@ -50,5 +52,5 @@ void bt_common_assert_failed(const char *file, int line, const char *func,
                bt_common_color_reset(),
                bt_common_color_fg_red(),
                bt_common_color_reset());
-       abort();
+       bt_common_abort();
 }
This page took 0.024124 seconds and 4 git commands to generate.