assert.hpp 453 B

12345678910111213141516171819
  1. /*
  2. Copyright 2025 Glen Joseph Fernandes
  3. (glenjofe@gmail.com)
  4. Distributed under the Boost Software License, Version 1.0.
  5. (http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #undef BOOST_CORE_DETAIL_ASSERT
  8. #if !defined(__clang__) && \
  9. !defined(__INTEL_COMPILER) && \
  10. defined(__GNUC__) && \
  11. (__GNUC__ < 5)
  12. #define BOOST_CORE_DETAIL_ASSERT(expr) void(0)
  13. #else
  14. #include <boost/assert.hpp>
  15. #define BOOST_CORE_DETAIL_ASSERT(expr) BOOST_ASSERT(expr)
  16. #endif