assert.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2006-2013
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/intrusive for documentation.
  10. //
  11. /////////////////////////////////////////////////////////////////////////////
  12. #ifndef BOOST_INTRUSIVE_DETAIL_ASSERT_HPP
  13. #define BOOST_INTRUSIVE_DETAIL_ASSERT_HPP
  14. #ifndef BOOST_CONFIG_HPP
  15. # include <boost/config.hpp>
  16. #endif
  17. #if defined(BOOST_HAS_PRAGMA_ONCE)
  18. #pragma once
  19. #endif
  20. #if !defined(BOOST_INTRUSIVE_INVARIANT_ASSERT)
  21. #include <boost/assert.hpp>
  22. #define BOOST_INTRUSIVE_INVARIANT_ASSERT BOOST_ASSERT
  23. #elif defined(BOOST_INTRUSIVE_INVARIANT_ASSERT_INCLUDE)
  24. #include BOOST_INTRUSIVE_INVARIANT_ASSERT_INCLUDE
  25. #endif
  26. #if !defined(BOOST_INTRUSIVE_SAFE_HOOK_DEFAULT_ASSERT)
  27. #include <boost/assert.hpp>
  28. #define BOOST_INTRUSIVE_SAFE_HOOK_DEFAULT_ASSERT BOOST_ASSERT
  29. #elif defined(BOOST_INTRUSIVE_SAFE_HOOK_DEFAULT_ASSERT_INCLUDE)
  30. #include BOOST_INTRUSIVE_SAFE_HOOK_DEFAULT_ASSERT_INCLUDE
  31. #endif
  32. #if !defined(BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT)
  33. #include <boost/assert.hpp>
  34. #define BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT BOOST_ASSERT
  35. #elif defined(BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT_INCLUDE)
  36. #include BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT_INCLUDE
  37. #endif
  38. #endif //BOOST_INTRUSIVE_DETAIL_ASSERT_HPP