Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / lib / assert-post.h
index 94bdf4ef0191029278105665434c6cf08bdb2e68..2cc359b4078445adaad91722641d039fb1c8c716 100644 (file)
@@ -43,6 +43,7 @@
 #include <stdlib.h>
 #include <inttypes.h>
 #include "common/macros.h"
+#include "common/common.h"
 
 /*
  * Prints the details of an unsatisfied postcondition without
@@ -96,7 +97,7 @@
                        BT_ASSERT_POST_MSG("Babeltrace 2 library postcondition not satisfied; error is:"); \
                        BT_ASSERT_POST_MSG(_fmt, ##__VA_ARGS__);        \
                        BT_ASSERT_POST_MSG("Aborting...");              \
-                       abort();                                        \
+                       bt_common_abort();                                      \
                }                                                       \
        } while (0)
 
This page took 0.023179 seconds and 4 git commands to generate.