Enable or disable span-lite's contract checking feature based on
BT_DEBUG_MODE. When contract checking is enabled and a contract
assertion fails, span-lite calls `std::terminate()`.
Change-Id: Ieba9a08712823daf4b77f135155cd15ec97900f5
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12119
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
#define span_FEATURE_MAKE_SPAN 1
+#ifdef BT_DEBUG_MODE
+# define span_CONFIG_CONTRACT_LEVEL_ON 1
+#else
+# define span_CONFIG_CONTRACT_LEVEL_OFF 1
+#endif
+
#include "cpp-common/vendor/span-lite/span.hpp" /* IWYU pragma: export */
namespace bt2s {