mimic++ v10.0.1
Loading...
Searching...
No Matches
ScopedExpectation.hpp
Go to the documentation of this file.
1// Copyright Dominic (DNKpp) Koepke 2024-2026.
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
10
11#define MIMICPP_DETAIL_UNIQUE_NAME(prefix, counter) prefix##counter
12#define MIMICPP_DETAIL_SCOPED_EXPECTATION_IMPL(counter) \
13 [[maybe_unused]] \
14 ::mimicpp::ScopedExpectation const MIMICPP_DETAIL_UNIQUE_NAME(_mimicpp_expectation_, counter) =
15
20#define MIMICPP_SCOPED_EXPECTATION MIMICPP_DETAIL_SCOPED_EXPECTATION_IMPL(MIMICPP_DETAIL_COUNTER)
21
22#ifndef MIMICPP_CONFIG_ONLY_PREFIXED_MACROS
27 #define SCOPED_EXP MIMICPP_SCOPED_EXPECTATION
28#endif
29
30#endif