Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
MacrosCore.h
Go to the documentation of this file.
1#pragma once
2
3// Before including <global_macro_functions.h>
4
5#if defined(spec_context)
6 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME spec_context
7
8#elif defined(SPEC_CONTEXT)
9 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME SPEC_CONTEXT
10
11#elif defined(spec_file)
12 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME spec_file
13
15 #include <global_macro_functions.h>
16
17_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME(_MacrosCore_spec_file_
19
20#elif defined(SPEC_FILE)
21 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME SPEC_FILE
22
24 #include <global_macro_functions.h>
25
26_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME(_MacrosCore_SPEC_FILE_
28
29#elif defined(spec_name)
30 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME spec_name
31
33 #include <global_macro_functions.h>
34
35_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME(_MacrosCore_spec_name_){[]() {
37 _GLOBAL_MACRO_FUNCTIONS_STRINGIZE(spec_name)
38 );
39}};
40
41#elif defined(SPEC_NAME)
42 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME SPEC_NAME
43
45 #include <global_macro_functions.h>
46
47_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME(_MacrosCore_SPEC_NAME_){[]() {
49 _GLOBAL_MACRO_FUNCTIONS_STRINGIZE(SPEC_NAME)
50 );
51}};
52
53#elif defined(spec_group)
54 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME spec_group
55
57 #include <global_macro_functions.h>
58
59_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME(_MacrosCore_spec_group_){[]() {
61 _GLOBAL_MACRO_FUNCTIONS_STRINGIZE(spec_group)
62 );
63}};
64
65#elif defined(SPEC_GROUP)
66 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME SPEC_GROUP
67
69 #include <global_macro_functions.h>
70
71_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME(_MacrosCore_SPEC_GROUP_){[]() {
73 _GLOBAL_MACRO_FUNCTIONS_STRINGIZE(SPEC_GROUP)
74 );
75}};
76
77#elif defined(spec_template)
78 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME spec_template
79
81 #include <global_macro_functions.h>
82
83_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME(_MacrosCore_spec_template_){[]() {
85 _GLOBAL_MACRO_FUNCTIONS_STRINGIZE(spec_template), true
86 );
87}};
88
89#elif defined(SPEC_TEMPLATE)
90 #define _GLOBAL_MACRO_FUNCTIONS_COMPILATION_UNIT_NAME SPEC_TEMPLATE
91
93 #include <global_macro_functions.h>
94
95_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME(_MacrosCore_SPEC_TEMPLATE_){[]() {
97 _GLOBAL_MACRO_FUNCTIONS_STRINGIZE(SPEC_TEMPLATE), true
98 );
99}};
100
101#endif
102
103#include <global_macro_functions.h>
static GlobalSpecGroup & instance()
void declare_file_group(std::string_view description, bool removeUnderscores=true)
void declare_top_level_template(std::string_view templateName, bool clearFileGroup=false, bool removeUnderscores=true)