# error Include "lib/logging.h" before this header.
#endif
+#include <stdbool.h>
#include <stdlib.h>
#include <inttypes.h>
+#include "common/common.h"
#include "common/macros.h"
/*
* code), use BT_ASSERT_POST().
*
* To assert that an internal postcondition is satisfied, use
- * BT_ASSERT().
+ * BT_ASSERT() or BT_ASSERT_DBG().
*/
#define BT_ASSERT_PRE(_cond, _fmt, ...) \
do { \
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)