assert.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #if defined(_MSC_VER)&&(_MSC_VER>=1200)
  15. #pragma once
  16. #endif
  17. #if !defined(BOOST_INTRUSIVE_INVARIANT_ASSERT)
  18. #include <boost/assert.hpp>
  19. #define BOOST_INTRUSIVE_INVARIANT_ASSERT BOOST_ASSERT
  20. #elif defined(BOOST_INTRUSIVE_INVARIANT_ASSERT_INCLUDE)
  21. #include BOOST_INTRUSIVE_INVARIANT_ASSERT_INCLUDE
  22. #endif
  23. #if !defined(BOOST_INTRUSIVE_SAFE_HOOK_DEFAULT_ASSERT)
  24. #include <boost/assert.hpp>
  25. #define BOOST_INTRUSIVE_SAFE_HOOK_DEFAULT_ASSERT BOOST_ASSERT
  26. #elif defined(BOOST_INTRUSIVE_SAFE_HOOK_DEFAULT_ASSERT_INCLUDE)
  27. #include BOOST_INTRUSIVE_SAFE_HOOK_DEFAULT_ASSERT_INCLUDE
  28. #endif
  29. #if !defined(BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT)
  30. #include <boost/assert.hpp>
  31. #define BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT BOOST_ASSERT
  32. #elif defined(BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT_INCLUDE)
  33. #include BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT_INCLUDE
  34. #endif
  35. #endif //BOOST_INTRUSIVE_DETAIL_ASSERT_HPP