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

Go to the source code of this file.

Macros

#define __SPEC_ONE_TIME_SETUP_BODY(symbol, count)
 
#define _SPEC_ONE_TIME_SETUP()   __SPEC_ONE_TIME_SETUP_BODY(_SPEC_ONE_TIME_SETUP_, __COUNTER__)
 

Macro Definition Documentation

◆ __SPEC_ONE_TIME_SETUP_BODY

#define __SPEC_ONE_TIME_SETUP_BODY (   symbol,
  count 
)
Value:
inline void \
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count)(SpecsCpp::ISpecGroup*, SpecsCpp::ISpecComponent*, SpecsCpp::ISpec*); \
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME_FROM_COUNT(symbol, count){[]( \
) { \
SpecsCpp::DSLs::GlobalInterface::define_one_time_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*)

Definition at line 7 of file ONE_TIME_SETUP.h.

◆ _SPEC_ONE_TIME_SETUP

#define _SPEC_ONE_TIME_SETUP ( )    __SPEC_ONE_TIME_SETUP_BODY(_SPEC_ONE_TIME_SETUP_, __COUNTER__)

Definition at line 19 of file ONE_TIME_SETUP.h.