cpp-common/bt2s: control span-lite's contract check based on BT_DEBUG_MODE
[babeltrace.git] / src / cpp-common / bt2s / span.hpp
CommitLineData
30586bf0
PP
1/*
2 * Copyright (c) 2024 Philippe Proulx <pproulx@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef BABELTRACE_CPP_COMMON_BT2S_SPAN_HPP
8#define BABELTRACE_CPP_COMMON_BT2S_SPAN_HPP
9
a111fb7d
SM
10#define span_FEATURE_MAKE_SPAN 1
11
81d7553f
SM
12#ifdef BT_DEBUG_MODE
13# define span_CONFIG_CONTRACT_LEVEL_ON 1
14#else
15# define span_CONFIG_CONTRACT_LEVEL_OFF 1
16#endif
17
a111fb7d 18#include "cpp-common/vendor/span-lite/span.hpp" /* IWYU pragma: export */
30586bf0
PP
19
20namespace bt2s {
21
22using nonstd::dynamic_extent;
23using nonstd::span;
24
25} /* namespace bt2s */
26
27#endif /* BABELTRACE_CPP_COMMON_BT2S_SPAN_HPP */
This page took 0.02556 seconds and 4 git commands to generate.