File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,6 @@ using cib_log_env_t = stdx::env<>;
7
7
8
8
// NOLINTBEGIN(cppcoreguidelines-macro-usage)
9
9
10
- #ifdef __clang__
11
- #define CIB_PRAGMA_SEMI
12
- #else
13
- #define CIB_PRAGMA_SEMI ;
14
- #endif
15
-
16
10
#define CIB_LOG_ENV_DECL (...) \
17
11
[[maybe_unused]] typedef decltype ([] { \
18
12
return stdx::extend_env_t <cib_log_env_t , __VA_ARGS__>{}; \
@@ -26,16 +20,16 @@ using cib_log_env_t = stdx::env<>;
26
20
#define CIB_LOG_ENV (...) \
27
21
STDX_PRAGMA (diagnostic push) \
28
22
STDX_PRAGMA(diagnostic ignored " -Wshadow" ) \
29
- CIB_LOG_ENV_DECL(__VA_ARGS__) \
30
- CIB_PRAGMA_SEMI \
31
- STDX_PRAGMA(diagnostic pop )
23
+ CIB_LOG_ENV_DECL(__VA_ARGS__); \
24
+ STDX_PRAGMA (diagnostic pop) \
25
+ static_assert( true )
32
26
33
27
#define CIB_APPEND_LOG_ENV (E ) \
34
28
STDX_PRAGMA (diagnostic push) \
35
29
STDX_PRAGMA(diagnostic ignored " -Wshadow" ) \
36
- CIB_APPEND_LOG_ENV_DECL(E) \
37
- CIB_PRAGMA_SEMI \
38
- STDX_PRAGMA(diagnostic pop )
30
+ CIB_APPEND_LOG_ENV_DECL(E); \
31
+ STDX_PRAGMA (diagnostic pop) \
32
+ static_assert( true )
39
33
40
34
#define CIB_WITH_LOG_ENV (...) \
41
35
STDX_PRAGMA (diagnostic push) \
You can’t perform that action at this time.
0 commit comments