mimic++ v9.2.1
Loading...
Searching...
No Matches
ScopedExpectation.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_MACROS_SCOPED_EXPECTATION_HPP
7#define MIMICPP_MACROS_SCOPED_EXPECTATION_HPP
8
9#define MIMICPP_DETAIL_UNIQUE_NAME(prefix, counter) prefix##counter
10#define MIMICPP_DETAIL_SCOPED_EXPECTATION_IMPL(counter) \
11 [[maybe_unused]] \
12 ::mimicpp::ScopedExpectation const MIMICPP_DETAIL_UNIQUE_NAME(_mimicpp_expectation_, counter) =
13
18#define MIMICPP_SCOPED_EXPECTATION MIMICPP_DETAIL_SCOPED_EXPECTATION_IMPL(__COUNTER__)
19
20#ifndef MIMICPP_CONFIG_ONLY_PREFIXED_MACROS
21
26 #define SCOPED_EXP MIMICPP_SCOPED_EXPECTATION
27
28#endif
29
30#endif