cli: print full version name
[babeltrace.git] / src / ctf-writer / assert-pre.h
index fbff4a7bd3e74974cb4f2ed001846b97cde58951..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"
@@ -85,7 +86,7 @@
  * arguments using BT_LOGF(), and abort.
  *
  * To assert that a postcondition is satisfied or that some internal
- * object/context/value is in the expected state, use BT_ASSERT().
+ * object/context/value is in the expected state, use BT_ASSERT_DBG().
  */
 # define BT_CTF_ASSERT_PRE(_cond, _fmt, ...)                           \
        do {                                                            \
@@ -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.027778 seconds and 4 git commands to generate.