Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
ASYNC_SETUP.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Specs/GlobalSpecGroup.h
>
4
#include <
Specs/SpecDone.h
>
5
6
#include "
MacrosCore.h
"
// IWYU pragma: keep
7
8
#define __SPEC_ASYNC_SETUP_BODY(symbol, count) \
9
inline void _GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count)( \
10
SpecsCpp::ISpecGroup*, SpecsCpp::ISpecComponent*, SpecsCpp::ISpec*, SpecsCpp::SpecDone \
11
); \
12
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME_FROM_COUNT(symbol, count){[]( \
13
) { \
14
SpecsCpp::DSLs::GlobalInterface::define_setup_fn( \
15
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count) \
16
); \
17
}}; \
18
inline void _GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count)( \
19
[[maybe_unused]] SpecsCpp::ISpecGroup * current_group, \
20
[[maybe_unused]] SpecsCpp::ISpecComponent * current_setup, \
21
[[maybe_unused]] SpecsCpp::ISpec * current_test, SpecsCpp::SpecDone done \
22
)
23
24
#define _SPEC_ASYNC_SETUP() __SPEC_ASYNC_SETUP_BODY(_SPEC_ASYNC_SETUP_, __COUNTER__)
GlobalSpecGroup.h
MacrosCore.h
SpecDone.h
Specs.DSLs
include
Specs
DSLs
Macros
ASYNC_SETUP.h
<3 Mrowr Purr