annotate DEPENDENCIES/generic/include/boost/geometry/index/detail/assert.hpp @ 16:2665513ce2d3

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