mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Merge pull request #408 from boostorg/atomic_macros
Print out <atomic> macros.
This commit is contained in:
@ -157,6 +157,9 @@
|
||||
#if !defined(__cpp_lib_semaphore) || (__cpp_lib_semaphore < 201907L)
|
||||
# define BOOST_NO_CXX20_HDR_SEMAPHORE
|
||||
#endif
|
||||
#if !defined(__cpp_lib_concepts) || (__cpp_lib_concepts < 202002L)
|
||||
# define BOOST_NO_CXX20_HDR_CONCEPTS
|
||||
#endif
|
||||
|
||||
#if(_LIBCPP_VERSION < 9000) && !defined(BOOST_NO_CXX20_HDR_SPAN)
|
||||
// as_writable_bytes is missing.
|
||||
|
@ -1294,6 +1294,9 @@ void print_boost_macros()
|
||||
#if __has_include(<version>)
|
||||
# include <version>
|
||||
#endif
|
||||
#if __has_include(<atomic>) && (BOOST_CXX_VERSION > 201100)
|
||||
# include <atomic>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void print_sd6_macros()
|
||||
@ -1494,6 +1497,18 @@ void print_sd6_macros()
|
||||
// C++98:
|
||||
PRINT_MACRO(__cpp_rtti);
|
||||
PRINT_MACRO(__cpp_exceptions);
|
||||
|
||||
// <atomic>:
|
||||
PRINT_MACRO(ATOMIC_INT_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_SHORT_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_LONG_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_LLONG_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_POINTER_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_CHAR_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_WCHAR_T_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_CHAR8_T_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_CHAR16_T_LOCK_FREE);
|
||||
PRINT_MACRO(ATOMIC_CHAR32_T_LOCK_FREE);
|
||||
}
|
||||
|
||||
void print_separator()
|
||||
|
Reference in New Issue
Block a user