mimic++
v10.0.1
Toggle main menu visibility
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
9
#include "
mimic++/config/Config.hpp
"
10
11
#ifndef MIMICPP_DETAIL_IS_MODULE
12
#include <atomic>
13
#endif
14
15
MIMICPP_DETAIL_MODULE_EXPORT
namespace
mimicpp::settings
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
Config.hpp
MIMICPP_DETAIL_MODULE_EXPORT
#define MIMICPP_DETAIL_MODULE_EXPORT
Definition
Config.hpp:19
mimicpp::settings::stacktrace_base_skip
std::atomic_size_t & stacktrace_base_skip() noexcept
Controls whether the base stacktrace-skip value.
Definition
Settings.hpp:46
mimicpp::settings::report_success
std::atomic_bool & report_success() noexcept
Controls whether successful matches are reported.
Definition
Settings.hpp:32
mimicpp::settings
Definition
Settings.hpp:16
mimic++
config
Settings.hpp
Generated on
for mimic++ by
1.18.0