Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:09:48

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 common dataset macros
0010 // ***************************************************************************
0011 
0012 #ifndef BOOST_TEST_DATA_CONFIG_HPP_112611GER
0013 #define BOOST_TEST_DATA_CONFIG_HPP_112611GER
0014 
0015 // Boost.Test
0016 #include <boost/test/detail/config.hpp>
0017 #include <boost/test/detail/throw_exception.hpp>
0018 
0019 // STL
0020 #include <stdexcept> // for std::logic_error
0021 
0022 // availability on features: preprocessed by doxygen
0023 
0024 #if defined(BOOST_NO_CXX11_HDR_RANDOM) || defined(BOOST_TEST_DOXYGEN_DOC__)
0025 //! Defined when the random dataset feature is not available
0026 #define BOOST_TEST_NO_RANDOM_DATASET_AVAILABLE
0027 
0028 #endif
0029 
0030 #if defined(BOOST_NO_CXX11_HDR_TUPLE) || defined(BOOST_TEST_DOXYGEN_DOC__)
0031 
0032 //! Defined when grid composition of datasets is not available
0033 #define BOOST_TEST_NO_GRID_COMPOSITION_AVAILABLE
0034 
0035 //! Defined when zip composition of datasets is not available
0036 #define BOOST_TEST_NO_ZIP_COMPOSITION_AVAILABLE
0037 
0038 #endif
0039 
0040 //! Defined when the initializer_list implementation is buggy, such as for VS2013
0041 #if defined(_MSC_VER) && _MSC_VER < 1900
0042 #  define BOOST_TEST_ERRONEOUS_INIT_LIST
0043 #endif
0044 
0045 //____________________________________________________________________________//
0046 
0047 #define BOOST_TEST_DS_ERROR( msg )        BOOST_TEST_I_THROW( std::logic_error( msg ) )
0048 #define BOOST_TEST_DS_ASSERT( cond, msg ) BOOST_TEST_I_ASSRT( cond, std::logic_error( msg ) )
0049 
0050 #endif // BOOST_TEST_DATA_CONFIG_HPP_112611GER