comparison DEPENDENCIES/generic/include/boost/geometry/index/detail/assert.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
1 // Boost.Geometry Index 1 // Boost.Geometry Index
2 // 2 //
3 // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland. 3 // Copyright (c) 2011-2014 Adam Wulkiewicz, Lodz, Poland.
4 // 4 //
5 // Use, modification and distribution is subject to the Boost Software License, 5 // Use, modification and distribution is subject to the Boost Software License,
6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 6 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt) 7 // http://www.boost.org/LICENSE_1_0.txt)
8 8
9 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP 9 #ifndef BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP
10 #define BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP 10 #define BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP
11 11
12 #include <boost/assert.hpp> 12 #include <boost/assert.hpp>
13 13
14 #ifndef BOOST_GEOMETRY_INDEX_ASSERT
15
14 #define BOOST_GEOMETRY_INDEX_ASSERT(CONDITION, TEXT_MSG) \ 16 #define BOOST_GEOMETRY_INDEX_ASSERT(CONDITION, TEXT_MSG) \
15 BOOST_ASSERT_MSG(CONDITION, TEXT_MSG) 17 BOOST_ASSERT_MSG(CONDITION, TEXT_MSG)
16 18
17 // TODO - change it to something like: 19 #endif // BOOST_GEOMETRY_INDEX_ASSERT
18 // BOOST_ASSERT((CONDITION) && (TEXT_MSG))
19
20 #if defined(BOOST_DISABLE_ASSERTS) || defined(NDEBUG)
21
22 #define BOOST_GEOMETRY_INDEX_ASSERT_UNUSED_PARAM(PARAM)
23
24 #else
25
26 #define BOOST_GEOMETRY_INDEX_ASSERT_UNUSED_PARAM(PARAM) PARAM
27
28 #endif
29 20
30 #endif // BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP 21 #endif // BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP