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;
6060
6161// NOLINTBEGIN(cppcoreguidelines-macro-usage)
6262
63- #define CIB_DO_PRAGMA (X ) _Pragma (#X)
6463#ifdef __clang__
65- #define CIB_PRAGMA (X ) CIB_DO_PRAGMA(clang X)
6664#define CIB_PRAGMA_SEMI
6765#else
68- #define CIB_PRAGMA (X ) CIB_DO_PRAGMA(GCC X)
6966#define CIB_PRAGMA_SEMI ;
7067#endif
7168
7269#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" ) \
7572 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( \
7774 diagnostic pop)
7875
7976#define CIB_LOG (FLAVOR, LEVEL, MSG, ...) \
You can’t perform that action at this time.
0 commit comments