Go to the documentation of this file. 8 #ifndef DXLE_INC_CONFIG_SUFFIX_HPP_ 9 #define DXLE_INC_CONFIG_SUFFIX_HPP_ 20 #ifndef DXLE_NO_CXX11_CONSTEXPR 21 # define DXLE_CONSTEXPR constexpr 22 # define DXLE_CONSTEXPR_OR_CONST constexpr 23 # define DXLE_STATIC_CONSTEXPR static constexpr 25 # define DXLE_STATIC_CONSTEXPR_DATA_MEMBER_INNER(EXPR) = EXPR 26 # define DXLE_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(EXPR) 27 #else // #ifndef DXLE_NO_CXX11_CONSTEXPR 28 # define DXLE_CONSTEXPR 29 # define DXLE_CONSTEXPR_OR_CONST const 30 # define DXLE_STATIC_CONSTEXPR static const 32 # define DXLE_STATIC_CONSTEXPR_DATA_MEMBER_INNER(EXPR) 33 # define DXLE_STATIC_CONSTEXPR_DATA_MEMBER_OUTER(EXPR) = EXPR 34 #endif // #ifndef DXLE_NO_CXX11_CONSTEXPR 41 #ifndef DXLE_NO_CXX14_CONSTEXPR 42 # define DXLE_CXX14_CONSTEXPR DXLE_CONSTEXPR 43 # define DXLE_CXX14_CONSTEXPR_OR_CONST DXLE_CONSTEXPR_OR_CONST 44 # define DXLE_CXX14_STATIC_CONSTEXPR DXLE_STATIC_CONSTEXPR 45 #else // #ifndef DXLE_NO_CXX14_CONSTEXPR 46 # define DXLE_CXX14_CONSTEXPR 47 # define DXLE_CXX14_CONSTEXPR_OR_CONST const 48 # define DXLE_CXX14_STATIC_CONSTEXPR static const 49 # ifndef DXLE_NO_CXX11_CONSTEXPR 50 # define DXLE_SUPPORT_ONLY_CXX11_CONSTEXPR 52 #endif // #ifndef DXLE_NO_CXX14_CONSTEXPR 57 #ifndef DXLE_NO_CXX14_INITIALIZER_LIST 58 # define DXLE_INITIALIZER_LIST_CONSTEXPR DXLE_CXX14_CONSTEXPR 59 #else // #ifndef DXLE_NO_CXX14_INITIALIZER_LIST 60 # define DXLE_INITIALIZER_LIST_CONSTEXPR 61 #endif // #ifndef DXLE_NO_CXX14_INITIALIZER_LIST 68 #ifdef DXLE_NO_CXX14_ATTRIBUTE_DEPRECATED 69 # if defined(__GNUC__) || defined(__clang__) 70 # define DXLE_DEPRECATED __attribute__((deprecated)) 71 # ifdef DXLE_HAS_GNU_DEPRECATED_WITH_MESSAGE_SUPPORT 72 # define DXLE_DEPRECATED_MESSAGE(message) __attribute__((deprecated(message))) 74 # elif defined(_MSC_VER) 75 # define DXLE_DEPRECATED __declspec(deprecated) 76 # define DXLE_DEPRECATED_MESSAGE(message) __declspec(deprecated(message)) 78 # define DXLE_DEPRECATED 80 # ifndef DXLE_DEPRECATED_MESSAGE 81 # deifne DXLE_DEPRECATED_MESSAGE DXLE_DEPRECATED 84 # define DXLE_DEPRECATED [[deprecated]] 85 # define DXLE_DEPRECATED_MESSAGE(message) [[deprecated(message)]] 92 #ifndef DXLE_NO_CXX11_NOEXCEPT 93 # define DXLE_NOEXCEPT noexcept 94 # define DXLE_NOEXCEPT_OR_NOTHROW noexcept 95 #else // #ifndef DXLE_CONFIG_DISABLE_NOEXCEPT 96 # define DXLE_NOEXCEPT 97 # define DXLE_NOEXCEPT_OR_NOTHROW throw() 98 #endif // #ifndef DXLE_CONFIG_DISABLE_NOEXCEPT 106 #ifndef DXLE_NO_CXX11_NOEXCEPT_EXPRESSION 107 # define DXLE_NOEXCEPT_IF(COND) noexcept((COND)) 108 # define DXLE_NOEXCEPT_EXPR(EXPR) noexcept((EXPR)) 109 # define DXLE_NOEXCEPT_EXPR_OR_DEFAULT(EXPR, C) noexcept((EXPR)) 110 # define DXLE_NOEXCEPT_IF_EXPR(EXPR) noexcept(noexcept((EXPR))) 111 #else //DXLE_NO_CXX11_NOEXCEPT_EXPRESSION 112 # define DXLE_NOEXCEPT_IF(COND) 113 # define DXLE_NOEXCEPT_EXPR(EXPR) false 114 # define DXLE_NOEXCEPT_EXPR_OR_DEFAULT(EXPR, C) C 115 # define DXLE_NOEXCEPT_IF_EXPR(EXPR) 116 #endif //DXLE_NO_CXX11_NOEXCEPT_EXPRESSION 121 #ifndef DXLE_NO_CXX11_UNICODE_LITERALS 122 # define DXLE_USE_UNICODE_LITERALS 1 123 #else // #ifndef DXLE_CONFIG_DISABLE_UNICODE_LITERALS 124 # define DXLE_USE_UNICODE_LITERALS 0 125 #endif // #ifndef DXLE_CONFIG_DISABLE_UNICODE_LITERALS 131 #ifndef DXLE_NO_CXX11_REF_QUALIFIERS 132 # define DXLE_REF_QUALIFIERS_LVALUE & 133 # define DXLE_REF_QUALIFIERS_RVALUE && 135 # define DXLE_REF_QUALIFIERS_LVALUE 136 # define DXLE_REF_QUALIFIERS_RVALUE 142 #define DXLE_PREVENT_MACRO_SUBSTITUTION 144 #ifndef DXLE_NO_CXX17_UNUSED 145 # define DXLE_UNUSED [[maybe_unused]] 146 #elif defined(__GNUC__) 147 # ifndef DXLE_NO_CXX11_ATTRIBUTES 148 # define DXLE_UNUSED [[gnu::unused]] 150 # define DXLE_UNUSED __attribute__((unused)) 156 #endif // #ifndef DXLE_INC_CONFIG_SUFFIX_HPP_