File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 3030
3131
3232// constexpr
33+
3334#define MPT_CONSTEXPRINLINE constexpr MPT_FORCEINLINE
34- #if MPT_CXX_AT_LEAST(20)
35+
36+ #if MPT_CXX_AT_LEAST(23)
3537#define MPT_CONSTEXPR20_FUN constexpr MPT_FORCEINLINE
3638#define MPT_CONSTEXPR20_VAR constexpr
37- #else // !C++20
39+ #define MPT_CONSTEXPR23_FUN constexpr MPT_FORCEINLINE
40+ #define MPT_CONSTEXPR23_VAR constexpr
41+ #elif MPT_CXX_AT_LEAST(20)
42+ #define MPT_CONSTEXPR20_FUN constexpr MPT_FORCEINLINE
43+ #define MPT_CONSTEXPR20_VAR constexpr
44+ #define MPT_CONSTEXPR23_FUN MPT_FORCEINLINE
45+ #define MPT_CONSTEXPR23_VAR const
46+ #else // C++
3847#define MPT_CONSTEXPR20_FUN MPT_FORCEINLINE
3948#define MPT_CONSTEXPR20_VAR const
40- #endif // C++20
49+ #define MPT_CONSTEXPR23_FUN MPT_FORCEINLINE
50+ #define MPT_CONSTEXPR23_VAR const
51+ #endif // C++
4152
4253
4354
You can’t perform that action at this time.
0 commit comments