Blame view

3rdparty/boost_1_81_0/boost/test/data/config.hpp 1.64 KB
0b6a182c   Hu Chunming   添加无鉴权注册和注销
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  //  (C) Copyright Gennadiy Rozental 2001.
  //  Distributed under the Boost Software License, Version 1.0.
  //  (See accompanying file LICENSE_1_0.txt or copy at
  //  http://www.boost.org/LICENSE_1_0.txt)
  
  //  See http://www.boost.org/libs/test for the library home page.
  //
  //!@file
  //!@brief common dataset macros
  // ***************************************************************************
  
  #ifndef BOOST_TEST_DATA_CONFIG_HPP_112611GER
  #define BOOST_TEST_DATA_CONFIG_HPP_112611GER
  
  // Boost.Test
  #include <boost/test/detail/config.hpp>
  #include <boost/test/detail/throw_exception.hpp>
  
  // STL
  #include <stdexcept> // for std::logic_error
  
  // availability on features: preprocessed by doxygen
  
  #if defined(BOOST_NO_CXX11_HDR_RANDOM) || defined(BOOST_TEST_DOXYGEN_DOC__)
  //! Defined when the random dataset feature is not available
  #define BOOST_TEST_NO_RANDOM_DATASET_AVAILABLE
  
  #endif
  
  #if defined(BOOST_NO_CXX11_HDR_TUPLE) || defined(BOOST_TEST_DOXYGEN_DOC__)
  
  //! Defined when grid composition of datasets is not available
  #define BOOST_TEST_NO_GRID_COMPOSITION_AVAILABLE
  
  //! Defined when zip composition of datasets is not available
  #define BOOST_TEST_NO_ZIP_COMPOSITION_AVAILABLE
  
  #endif
  
  //! Defined when the initializer_list implementation is buggy, such as for VS2013
  #if defined(_MSC_VER) && _MSC_VER < 1900
  #  define BOOST_TEST_ERRONEOUS_INIT_LIST
  #endif
  
  //____________________________________________________________________________//
  
  #define BOOST_TEST_DS_ERROR( msg )        BOOST_TEST_I_THROW( std::logic_error( msg ) )
  #define BOOST_TEST_DS_ASSERT( cond, msg ) BOOST_TEST_I_ASSRT( cond, std::logic_error( msg ) )
  
  #endif // BOOST_TEST_DATA_CONFIG_HPP_112611GER