cpp-common/bt2s: control span-lite's contract check based on BT_DEBUG_MODE
[babeltrace.git] / src / cpp-common / bt2s / span.hpp
index 94dd8011b9358894ae83235215f798afe98f1740..4a7fc32969a93618387fcf80be7ed14041e87f24 100644 (file)
@@ -9,6 +9,12 @@
 
 #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 {
This page took 0.022717 seconds and 4 git commands to generate.