Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / lib / assert-pre.h
index 0b85d861f695244c8450f8644dadf4dc00701531..03d86de368fd8d5d4f61a15eba644525029fee5f 100644 (file)
@@ -42,6 +42,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <inttypes.h>
+#include "common/common.h"
 #include "common/macros.h"
 
 /*
@@ -95,7 +96,7 @@
                        BT_ASSERT_PRE_MSG("Babeltrace 2 library precondition not satisfied; error is:"); \
                        BT_ASSERT_PRE_MSG(_fmt, ##__VA_ARGS__); \
                        BT_ASSERT_PRE_MSG("Aborting...");               \
-                       abort();                                        \
+                       bt_common_abort();                                      \
                }                                                       \
        } while (0)
 
This page took 0.022691 seconds and 4 git commands to generate.