1 // (C) Copyright Gennadiy Rozental 2001.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/test for the library home page.
9 //!@brief common dataset macros
10 // ***************************************************************************
12 #ifndef BOOST_TEST_DATA_CONFIG_HPP_112611GER
13 #define BOOST_TEST_DATA_CONFIG_HPP_112611GER
16 #include <boost/test/detail/config.hpp>
17 #include <boost/test/detail/throw_exception.hpp>
20 #include <stdexcept> // for std::logic_error
22 // availability on features: preprocessed by doxygen
24 #if defined(BOOST_NO_CXX11_HDR_RANDOM) || defined(BOOST_TEST_DOXYGEN_DOC__)
25 //! Defined when the random dataset feature is not available
26 #define BOOST_TEST_NO_RANDOM_DATASET_AVAILABLE
30 #if defined(BOOST_NO_CXX11_HDR_TUPLE) || defined(BOOST_TEST_DOXYGEN_DOC__)
32 //! Defined when grid composition of datasets is not available
33 #define BOOST_TEST_NO_GRID_COMPOSITION_AVAILABLE
35 //! Defined when zip composition of datasets is not available
36 #define BOOST_TEST_NO_ZIP_COMPOSITION_AVAILABLE
40 //____________________________________________________________________________//
42 #define BOOST_TEST_DS_ERROR( msg ) BOOST_TEST_I_THROW( std::logic_error( msg ) )
43 #define BOOST_TEST_DS_ASSERT( cond, msg ) BOOST_TEST_I_ASSRT( cond, std::logic_error( msg ) )
45 #endif // BOOST_TEST_DATA_CONFIG_HPP_112611GER