Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/include/__config
Show First 20 Lines • Show All 786 Lines • ▼ Show 20 Lines | # define _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(x) \ | ||||
_LIBCPP_INLINE_VISIBILITY explicit x(int __v) : __v_(static_cast<__lx>(__v)) {} \ | _LIBCPP_INLINE_VISIBILITY explicit x(int __v) : __v_(static_cast<__lx>(__v)) {} \ | ||||
_LIBCPP_INLINE_VISIBILITY operator int() const {return __v_;} \ | _LIBCPP_INLINE_VISIBILITY operator int() const {return __v_;} \ | ||||
}; | }; | ||||
#else // _LIBCPP_CXX03_LANG | #else // _LIBCPP_CXX03_LANG | ||||
# define _LIBCPP_DECLARE_STRONG_ENUM(x) enum class _LIBCPP_ENUM_VIS x | # define _LIBCPP_DECLARE_STRONG_ENUM(x) enum class _LIBCPP_ENUM_VIS x | ||||
# define _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(x) | # define _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(x) | ||||
#endif // _LIBCPP_CXX03_LANG | #endif // _LIBCPP_CXX03_LANG | ||||
// Libc++ allows disabling extern template instantiation declarations by | |||||
// means of users defining _LIBCPP_DISABLE_EXTERN_TEMPLATE. | |||||
// | |||||
// TODO: Remove _LIBCPP_EXTERN_TEMPLATE_EVEN_IN_DEBUG_MODE, which is not needed | |||||
// since the Debug mode is a configuration-time property. | |||||
#if defined(_LIBCPP_DISABLE_EXTERN_TEMPLATE) | |||||
# define _LIBCPP_EXTERN_TEMPLATE(...) /* nothing */ | |||||
# define _LIBCPP_EXTERN_TEMPLATE_EVEN_IN_DEBUG_MODE(...) /* nothing */ | |||||
#else | |||||
# define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__; | |||||
# define _LIBCPP_EXTERN_TEMPLATE_EVEN_IN_DEBUG_MODE(...) extern template __VA_ARGS__; | |||||
#endif | |||||
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(_LIBCPP_MSVCRT_LIKE) || \ | #if defined(__APPLE__) || defined(__FreeBSD__) || defined(_LIBCPP_MSVCRT_LIKE) || \ | ||||
defined(__sun__) || defined(__NetBSD__) | defined(__sun__) || defined(__NetBSD__) | ||||
#define _LIBCPP_LOCALE__L_EXTENSIONS 1 | #define _LIBCPP_LOCALE__L_EXTENSIONS 1 | ||||
#endif | #endif | ||||
#ifdef __FreeBSD__ | #ifdef __FreeBSD__ | ||||
#define _DECLARE_C99_LDBL_MATH 1 | #define _DECLARE_C99_LDBL_MATH 1 | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 488 Lines • Show Last 20 Lines |