Skip to content

Commit 5248cd7

Browse files
committed
🎨 Move STDX_PRAGMA to compiler.hpp
1 parent 66f25a0 commit 5248cd7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/stdx/compiler.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,10 @@
4343
#define LIFETIMEBOUND
4444
#endif
4545
#endif
46+
47+
#define STDX_DO_PRAGMA(X) _Pragma(#X)
48+
#ifdef __clang__
49+
#define STDX_PRAGMA(X) STDX_DO_PRAGMA(clang X)
50+
#else
51+
#define STDX_PRAGMA(X) STDX_DO_PRAGMA(GCC X)
52+
#endif

include/stdx/utility.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,6 @@ constexpr auto is_aligned_with = [](auto v) -> bool {
186186
#define FWD(x) std::forward<decltype(x)>(x)
187187
#endif
188188

189-
#define STDX_DO_PRAGMA(X) _Pragma(#X)
190-
#ifdef __clang__
191-
#define STDX_PRAGMA(X) STDX_DO_PRAGMA(clang X)
192-
#else
193-
#define STDX_PRAGMA(X) STDX_DO_PRAGMA(GCC X)
194-
#endif
195-
196189
#ifndef CX_VALUE
197190
#define CX_VALUE(...) \
198191
[] { \

0 commit comments

Comments
 (0)