Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:32:22

0001 //  (C) Copyright Gennadiy Rozental 2001.
0002 //  Distributed under the Boost Software License, Version 1.0.
0003 //  (See accompanying file LICENSE_1_0.txt or copy at
0004 //  http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 //  See http://www.boost.org/libs/test for the library home page.
0007 //
0008 //!@file
0009 //!@brief a central place for global configuration switches
0010 // ***************************************************************************
0011 
0012 #ifndef BOOST_TEST_CONFIG_HPP_071894GER
0013 #define BOOST_TEST_CONFIG_HPP_071894GER
0014 
0015 // Boost
0016 #include <boost/config.hpp> // compilers workarounds
0017 #include <boost/detail/workaround.hpp>
0018 
0019 #if defined(_WIN32) && !defined(BOOST_DISABLE_WIN32) && \
0020     (!defined(__COMO__) && !defined(__MWERKS__)      && \
0021      !defined(__GNUC__) && !defined(BOOST_EMBTC)     || \
0022     BOOST_WORKAROUND(__MWERKS__, >= 0x3000))
0023 #  define BOOST_SEH_BASED_SIGNAL_HANDLING
0024 #endif
0025 
0026 #if defined(__COMO__) && defined(_MSC_VER)
0027 // eh.h uses type_info without declaring it.
0028 class type_info;
0029 #  define BOOST_SEH_BASED_SIGNAL_HANDLING
0030 #endif
0031 
0032 //____________________________________________________________________________//
0033 
0034 #if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x570)) || \
0035     BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600))     || \
0036     (defined __sgi && BOOST_WORKAROUND(_COMPILER_VERSION, BOOST_TESTED_AT(730)))
0037 #  define BOOST_TEST_SHIFTED_LINE
0038 #endif
0039 
0040 //____________________________________________________________________________//
0041 
0042 #if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32))
0043 #  define BOOST_TEST_CALL_DECL __cdecl
0044 #else
0045 #  define BOOST_TEST_CALL_DECL /**/
0046 #endif
0047 
0048 //____________________________________________________________________________//
0049 
0050 #if !defined(BOOST_NO_STD_LOCALE) && !defined(__MWERKS__)
0051 #  define BOOST_TEST_USE_STD_LOCALE 1
0052 #endif
0053 
0054 //____________________________________________________________________________//
0055 
0056 #if BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x570)            || \
0057     BOOST_WORKAROUND( __COMO__, <= 0x433 )              || \
0058     BOOST_WORKAROUND( __INTEL_COMPILER, <= 800 )        || \
0059     defined(__sgi) && _COMPILER_VERSION <= 730          || \
0060     BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600))  || \
0061     defined(__DECCXX)                                   || \
0062     defined(__DMC__)
0063 #  define BOOST_TEST_NO_PROTECTED_USING
0064 #endif
0065 
0066 //____________________________________________________________________________//
0067 
0068 #if BOOST_WORKAROUND(BOOST_MSVC, < 1400)
0069 #define BOOST_TEST_PROTECTED_VIRTUAL
0070 #else
0071 #define BOOST_TEST_PROTECTED_VIRTUAL virtual
0072 #endif
0073 
0074 //____________________________________________________________________________//
0075 
0076 #if !defined(BOOST_BORLANDC) && !BOOST_WORKAROUND( __SUNPRO_CC, < 0x5100 )
0077 #define BOOST_TEST_SUPPORT_TOKEN_ITERATOR 1
0078 #endif
0079 
0080 //____________________________________________________________________________//
0081 
0082 // Sun compiler does not support visibility on enums
0083 #if defined(__SUNPRO_CC)
0084 #define BOOST_TEST_ENUM_SYMBOL_VISIBLE
0085 #else
0086 #define BOOST_TEST_ENUM_SYMBOL_VISIBLE BOOST_SYMBOL_VISIBLE
0087 #endif
0088 
0089 //____________________________________________________________________________//
0090 
0091 #if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_TEST_DYN_LINK)
0092 #  define BOOST_TEST_DYN_LINK
0093 #endif
0094 
0095 // in case any of the define from cmake/b2 is set
0096 #if !defined(BOOST_TEST_DYN_LINK) \
0097     && (defined(BOOST_UNIT_TEST_FRAMEWORK_DYN_LINK) \
0098         || defined(BOOST_TEST_EXEC_MONITOR_DYN_LINK) \
0099         || defined(BOOST_PRG_EXEC_MONITOR_DYN_LINK) )
0100 #  define BOOST_TEST_DYN_LINK
0101 #endif
0102 
0103 #if defined(BOOST_TEST_INCLUDED)
0104 #  undef BOOST_TEST_DYN_LINK
0105 #endif
0106 
0107 #if defined(BOOST_TEST_DYN_LINK)
0108 #  define BOOST_TEST_ALTERNATIVE_INIT_API
0109 
0110 #  ifdef BOOST_TEST_SOURCE
0111 #    define BOOST_TEST_DECL BOOST_SYMBOL_EXPORT BOOST_SYMBOL_VISIBLE
0112 #  else
0113 #    define BOOST_TEST_DECL BOOST_SYMBOL_IMPORT BOOST_SYMBOL_VISIBLE
0114 #  endif  // BOOST_TEST_SOURCE
0115 #else
0116 #  if defined(BOOST_TEST_INCLUDED)
0117 #     define BOOST_TEST_DECL
0118 #  else
0119 #     define BOOST_TEST_DECL BOOST_SYMBOL_VISIBLE
0120 #  endif
0121 #endif
0122 
0123 #if !defined(BOOST_TEST_MAIN) && defined(BOOST_AUTO_TEST_MAIN)
0124 #define BOOST_TEST_MAIN BOOST_AUTO_TEST_MAIN
0125 #endif
0126 
0127 #if !defined(BOOST_TEST_MAIN) && defined(BOOST_TEST_MODULE)
0128 #define BOOST_TEST_MAIN BOOST_TEST_MODULE
0129 #endif
0130 
0131 
0132 
0133 #ifndef BOOST_PP_VARIADICS /* we can change this only if not already defined */
0134 
0135 #ifdef __PGI
0136 #define BOOST_PP_VARIADICS 1
0137 #endif
0138 
0139 #if BOOST_CLANG
0140 #define BOOST_PP_VARIADICS 1
0141 #endif
0142 
0143 #if defined(BOOST_GCC) && (BOOST_GCC >= 4 * 10000 + 8 * 100)
0144 #define BOOST_PP_VARIADICS 1
0145 #endif
0146 
0147 #if defined(__NVCC__)
0148 #define BOOST_PP_VARIADICS 1
0149 #endif
0150 
0151 #endif /* ifndef BOOST_PP_VARIADICS */
0152 
0153 // some versions of VC exibit a manifest error with this BOOST_UNREACHABLE_RETURN
0154 #if BOOST_WORKAROUND(BOOST_MSVC, < 1910)
0155 # define BOOST_TEST_UNREACHABLE_RETURN(x) return x
0156 #else
0157 # define BOOST_TEST_UNREACHABLE_RETURN(x) BOOST_UNREACHABLE_RETURN(x)
0158 #endif
0159 
0160 //____________________________________________________________________________//
0161 
0162 // MSVC <= 12 and GCC <= 4.6 do not allow for defaulted destructors
0163 // See: https://github.com/boostorg/test/issues/385
0164 
0165 #if (defined(BOOST_MSVC) && BOOST_MSVC < 1900) || (defined(BOOST_GCC) && BOOST_GCC < 40700)
0166 #  define BOOST_TEST_DEFAULTED_FUNCTION(fun, body) fun body
0167 #else
0168 #  define BOOST_TEST_DEFAULTED_FUNCTION(fun, body) BOOST_DEFAULTED_FUNCTION(fun, body);
0169 #endif
0170 
0171 //____________________________________________________________________________//
0172 // string_view support
0173 //____________________________________________________________________________//
0174 // note the code should always be compatible with compiled version of boost.test
0175 // using a pre-c++17 compiler
0176 
0177 #ifndef BOOST_NO_CXX17_HDR_STRING_VIEW
0178 #define BOOST_TEST_STRING_VIEW
0179 #endif
0180 
0181 #endif // BOOST_TEST_CONFIG_HPP_071894GER