Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git] / src / ctf-writer / assert-pre.h
index 4ae74afea4fd9e7e6665c72d159e1fb93d4ed5f1..54870832d8ab323520f938c702f4629b5e6c38ea 100644 (file)
@@ -39,6 +39,7 @@
 # error Include "logging/log.h" before this header.
 #endif
 
+#include <stdbool.h>
 #include <stdlib.h>
 #include <inttypes.h>
 #include "common/macros.h"
@@ -93,7 +94,7 @@
                        BT_CTF_ASSERT_PRE_MSG("CTF writer precondition not satisfied; error is:"); \
                        BT_CTF_ASSERT_PRE_MSG((_fmt), ##__VA_ARGS__);   \
                        BT_CTF_ASSERT_PRE_MSG("Aborting...");           \
-                       abort();                                        \
+                       bt_common_abort();                                      \
                }                                                       \
        } while (0)
 
This page took 0.026553 seconds and 4 git commands to generate.