cpp-common/bt2s: control span-lite's contract check based on BT_DEBUG_MODE
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Mar 2024 18:21:36 +0000 (14:21 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Mar 2024 18:56:36 +0000 (14:56 -0400)
commit81d7553f350a4f9b6c3b245dfc7cd912c48067a9
tree46b6dfc2dae77cb7d801233f33fb77b55bfc1e64
parentfb472529347b066d5b60f9e4f1d2554ecb733aca
cpp-common/bt2s: control span-lite's contract check based on BT_DEBUG_MODE

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>
src/cpp-common/bt2s/span.hpp
This page took 0.02857 seconds and 4 git commands to generate.