Merge pull request #408 from boostorg/atomic_macros

Print out <atomic> macros.
This commit is contained in:
jzmaddock
2021-10-07 13:52:27 +01:00
committed by GitHub
2 changed files with 18 additions and 0 deletions

View File

@ -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.

View File

@ -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()