Chris@16: # /* Copyright (C) 2001 Chris@16: # * Housemarque Oy Chris@16: # * http://www.housemarque.com Chris@16: # * Chris@16: # * Distributed under the Boost Software License, Version 1.0. (See Chris@16: # * accompanying file LICENSE_1_0.txt or copy at Chris@16: # * http://www.boost.org/LICENSE_1_0.txt) Chris@16: # */ Chris@16: # Chris@16: # /* Revised by Paul Mensonides (2002) */ Chris@16: # Chris@16: # /* See http://www.boost.org for most recent version. */ Chris@16: # Chris@16: # ifndef BOOST_PREPROCESSOR_DEBUG_ASSERT_HPP Chris@16: # define BOOST_PREPROCESSOR_DEBUG_ASSERT_HPP Chris@16: # Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: # Chris@16: # /* BOOST_PP_ASSERT */ Chris@16: # Chris@16: # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG() Chris@16: # define BOOST_PP_ASSERT BOOST_PP_ASSERT_D Chris@16: # else Chris@16: # define BOOST_PP_ASSERT(cond) BOOST_PP_ASSERT_D(cond) Chris@16: # endif Chris@16: # Chris@16: # define BOOST_PP_ASSERT_D(cond) BOOST_PP_IIF(BOOST_PP_NOT(cond), BOOST_PP_ASSERT_ERROR, BOOST_PP_TUPLE_EAT_1)(...) Chris@16: # define BOOST_PP_ASSERT_ERROR(x, y, z) Chris@16: # Chris@16: # /* BOOST_PP_ASSERT_MSG */ Chris@16: # Chris@16: # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG() Chris@16: # define BOOST_PP_ASSERT_MSG BOOST_PP_ASSERT_MSG_D Chris@16: # else Chris@16: # define BOOST_PP_ASSERT_MSG(cond, msg) BOOST_PP_ASSERT_MSG_D(cond, msg) Chris@16: # endif Chris@16: # Chris@16: # define BOOST_PP_ASSERT_MSG_D(cond, msg) BOOST_PP_EXPR_IIF(BOOST_PP_NOT(cond), msg) Chris@16: # Chris@16: # endif