assert.hpp 569 B

1234567891011121314151617181920212223242526
  1. //
  2. // MessagePack for C++ static resolution routine
  3. //
  4. // Copyright (C) 2022 KONDO Takatoshi
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef MSGPACK_ASSERT_HPP
  11. #define MSGPACK_ASSERT_HPP
  12. #if defined(MSGPACK_NO_BOOST)
  13. #include <cassert>
  14. #define MSGPACK_ASSERT assert
  15. #else // defined(MSGPACK_NO_BOOST)
  16. #include <boost/assert.hpp>
  17. #define MSGPACK_ASSERT BOOST_ASSERT
  18. #endif // defined(MSGPACK_NO_BOOST)
  19. #endif // MSGPACK_ASSERT_HPP