This is to make some headers require that precondition and postcondition
assertion macros exist when including them, just like
`src/lib/logging.h` defines `BT_LIB_LOG_SUPPORTED` for the same reason.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ia2db609ae540b29129b9260c237f8b8d9657d977
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1576
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
# define BT_ASSERT_POST_MSG(_fmt, ...)
#endif /* BT_DEV_MODE */
+#define BT_ASSERT_POST_SUPPORTED
+
#endif /* BABELTRACE_ASSERT_POST_INTERNAL_H */
"Index is out of bounds: index=%" PRIu64 ", " \
"count=%" PRIu64, (uint64_t) (_index), (uint64_t) (_length))
+#define BT_ASSERT_PRE_SUPPORTED
+
#endif /* BABELTRACE_ASSERT_PRE_INTERNAL_H */