File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -60,20 +60,17 @@ using cib_log_module_id_t = typename logging::module_id_t<"default">::type;
60
60
61
61
// NOLINTBEGIN(cppcoreguidelines-macro-usage)
62
62
63
- #define CIB_DO_PRAGMA (X ) _Pragma (#X)
64
63
#ifdef __clang__
65
- #define CIB_PRAGMA (X ) CIB_DO_PRAGMA(clang X)
66
64
#define CIB_PRAGMA_SEMI
67
65
#else
68
- #define CIB_PRAGMA (X ) CIB_DO_PRAGMA(GCC X)
69
66
#define CIB_PRAGMA_SEMI ;
70
67
#endif
71
68
72
69
#define CIB_LOG_MODULE (S ) \
73
- CIB_PRAGMA (diagnostic push) \
74
- CIB_PRAGMA (diagnostic ignored " -Wshadow" ) \
70
+ STDX_PRAGMA (diagnostic push) \
71
+ STDX_PRAGMA (diagnostic ignored " -Wshadow" ) \
75
72
using cib_log_module_id_t [[maybe_unused]] = \
76
- typename logging::module_id_t<S>::type CIB_PRAGMA_SEMI CIB_PRAGMA( \
73
+ typename logging::module_id_t<S>::type CIB_PRAGMA_SEMI STDX_PRAGMA( \
77
74
diagnostic pop)
78
75
79
76
#define CIB_LOG (FLAVOR, LEVEL, MSG, ...) \
You can’t perform that action at this time.
0 commit comments