Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
ASYNC_SETUP.h File Reference
#include <Specs/GlobalSpecGroup.h>
#include <Specs/SpecDone.h>
#include "MacrosCore.h"

Go to the source code of this file.

Macros

#define __SPEC_ASYNC_SETUP_BODY(symbol, count)
 
#define _SPEC_ASYNC_SETUP()   __SPEC_ASYNC_SETUP_BODY(_SPEC_ASYNC_SETUP_, __COUNTER__)
 

Macro Definition Documentation

◆ __SPEC_ASYNC_SETUP_BODY

#define __SPEC_ASYNC_SETUP_BODY (   symbol,
  count 
)
Value:
inline void _GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count)( \
); \
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME_FROM_COUNT(symbol, count){[]( \
) { \
SpecsCpp::DSLs::GlobalInterface::define_setup_fn( \
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count) \
); \
}}; \
inline void _GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count)( \
[[maybe_unused]] SpecsCpp::ISpecGroup * current_group, \
[[maybe_unused]] SpecsCpp::ISpecComponent * current_setup, \
[[maybe_unused]] SpecsCpp::ISpec * current_test, SpecsCpp::SpecDone done \
)

Definition at line 8 of file ASYNC_SETUP.h.

◆ _SPEC_ASYNC_SETUP

#define _SPEC_ASYNC_SETUP ( )    __SPEC_ASYNC_SETUP_BODY(_SPEC_ASYNC_SETUP_, __COUNTER__)

Definition at line 24 of file ASYNC_SETUP.h.