mimic++ v9.2.1
Loading...
Searching...
No Matches
Settings.hpp
Go to the documentation of this file.
1// Copyright Dominic (DNKpp) Koepke 2024 - 2025.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at
4// https://www.boost.org/LICENSE_1_0.txt)
5
6#ifndef MIMICPP_CONFIG_SETTINGS_HPP
7#define MIMICPP_CONFIG_SETTINGS_HPP
8
10
11#ifndef MIMICPP_DETAIL_IS_MODULE
12 #include <atomic>
13#endif
14
16{
22
31 [[nodiscard]]
32 inline std::atomic_bool& report_success() noexcept
33 {
34 static std::atomic_bool value{false};
35
36 return value;
37 }
38
45 [[nodiscard]]
46 inline std::atomic_size_t& stacktrace_base_skip() noexcept
47 {
48 static std::atomic_size_t value{0u};
49
50 return value;
51 }
52
56}
57
58#endif
#define MIMICPP_DETAIL_MODULE_EXPORT
Definition Config.hpp:19
std::atomic_size_t & stacktrace_base_skip() noexcept
Controls whether the base stacktrace-skip value.
Definition Settings.hpp:46
std::atomic_bool & report_success() noexcept
Controls whether successful matches are reported.
Definition Settings.hpp:32
Definition Settings.hpp:16