assert.hpp 824 B

123456789101112131415161718192021222324252627282930
  1. // Boost.Geometry Index
  2. //
  3. // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
  4. //
  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
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. #ifndef BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP
  9. #define BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP
  10. #include <boost/assert.hpp>
  11. #define BOOST_GEOMETRY_INDEX_ASSERT(CONDITION, TEXT_MSG) \
  12. BOOST_ASSERT_MSG(CONDITION, TEXT_MSG)
  13. // TODO - change it to something like:
  14. // BOOST_ASSERT((CONDITION) && (TEXT_MSG))
  15. #if defined(BOOST_DISABLE_ASSERTS) || defined(NDEBUG)
  16. #define BOOST_GEOMETRY_INDEX_ASSERT_UNUSED_PARAM(PARAM)
  17. #else
  18. #define BOOST_GEOMETRY_INDEX_ASSERT_UNUSED_PARAM(PARAM) PARAM
  19. #endif
  20. #endif // BOOST_GEOMETRY_INDEX_DETAIL_ASSERT_HPP