Skip to content

Commit 219aa39

Browse files
committed
🎨 Use STDX_PRAGMA instead of CIB_PRAGMA
1 parent 2392d20 commit 219aa39

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

include/log/log.hpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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, ...) \

0 commit comments

Comments
 (0)