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

Go to the source code of this file.

Macros

#define __SPEC_TEARDOWN_BODY(symbol, count)
 
#define _SPEC_TEARDOWN()   __SPEC_TEARDOWN_BODY(_SPEC_TEARDOWN_, __COUNTER__)
 

Macro Definition Documentation

◆ __SPEC_TEARDOWN_BODY

#define __SPEC_TEARDOWN_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_teardown_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_teardown, \
[[maybe_unused]] SpecsCpp::ISpec * current_test \
)

Definition at line 7 of file TEARDOWN.h.

◆ _SPEC_TEARDOWN

#define _SPEC_TEARDOWN ( )    __SPEC_TEARDOWN_BODY(_SPEC_TEARDOWN_, __COUNTER__)

Definition at line 22 of file TEARDOWN.h.