lib: internal: define `BT_ASSERT_{PRE,POST}_SUPPORTED` in headers
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jun 2019 20:45:01 +0000 (16:45 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 29 Jun 2019 06:04:08 +0000 (02:04 -0400)
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>
src/lib/assert-post.h
src/lib/assert-pre.h

index 3e1a25d7fd76c9f1ef729148199fbe94f500f928..9776bde09af6bb5e722ac8db420638ea8b98d23c 100644 (file)
 # define BT_ASSERT_POST_MSG(_fmt, ...)
 #endif /* BT_DEV_MODE */
 
+#define BT_ASSERT_POST_SUPPORTED
+
 #endif /* BABELTRACE_ASSERT_POST_INTERNAL_H */
index 2aae8f79a0e95a29331c81bfd4d920742e9d191d..1cb0fec79d1ae8c38dbc64e0cff0b736073149a4 100644 (file)
                "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 */
This page took 0.026404 seconds and 4 git commands to generate.