File tree Expand file tree Collapse file tree 4 files changed +53
-2
lines changed Expand file tree Collapse file tree 4 files changed +53
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
. * /
5
5
6
- * .auto.h
6
+ * .auto.h
7
+ inc /ae2f /Macro.h
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ include(cmake/Core.cmake)
8
8
include (cmake/Macro.cmake )
9
9
10
10
if (NOT TARGET ae2f::Macro )
11
+ configure_file (${PROJECT_SOURCE_DIR} /Macro.h.in ${PROJECT_SOURCE_DIR} /inc/ae2f/Macro.h )
11
12
ae2f_CoreLibTent (Macro INTERFACE inc ae2f "inc/ae2f/Macro.h" )
12
- endif ()
13
+ endif ()
Original file line number Diff line number Diff line change
1
+ #ifndef __ae2f_MACRO_GENERATED
2
+ #define __ae2f_MACRO_GENERATED 0
3
+ #endif
4
+
5
+ #undef ae2f_WhenMac
6
+ #undef ae2f_WhenNMac
7
+ #undef ae2f_MAC
8
+
9
+ #if !__ae2f_MACRO_GENERATED
10
+
11
+ /** Available when is macro-generated */
12
+ #define ae2f_WhenMac (...)
13
+
14
+ /** Available when is not-macro-generated. */
15
+ #define ae2f_WhenNMac (...) __VA_ARGS__
16
+
17
+ #else
18
+
19
+ /** Available when is macro-generated .*/
20
+ #define ae2f_WhenMac (...) __VA_ARGS__
21
+
22
+ /** Available when is not-macro-generated. */
23
+ #define ae2f_WhenNMac (...)
24
+
25
+ #endif
26
+
27
+ /**
28
+ * @def ae2f_MAC
29
+ * @brief
30
+ * A hint for creating a macro from void-returning function.
31
+ *
32
+ * @details
33
+ * Its parameters will be additional template parameters you could customise.
34
+ * */
35
+ #define ae2f_MAC (...) ae2f_WhenNMac(inline static void)
36
+
37
+ #if !(defined(OFF ) && defined(ON ))
38
+ #define OFF 0
39
+ #define ON 1
40
+ #endif
41
+
42
+ #define ae2f_MAC_BUILD @ae2f_MAC_BUILD@
Original file line number Diff line number Diff line change 33
33
* Its parameters will be additional template parameters you could customise.
34
34
* */
35
35
#define ae2f_MAC (...) ae2f_WhenNMac(inline static void)
36
+
37
+ #if !(defined(OFF ) && defined(ON ))
38
+ #define OFF 0
39
+ #define ON 1
40
+ #endif
41
+
42
+ #define ae2f_MAC_BUILD OFF
You can’t perform that action at this time.
0 commit comments