Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:22

0001 # /* Copyright (C) 2001
0002 #  * Housemarque Oy
0003 #  * http://www.housemarque.com
0004 #  *
0005 #  * Distributed under the Boost Software License, Version 1.0. (See
0006 #  * accompanying file LICENSE_1_0.txt or copy at
0007 #  * http://www.boost.org/LICENSE_1_0.txt)
0008 #  */
0009 #
0010 # /* Revised by Paul Mensonides (2002) */
0011 #
0012 # /* See http://www.boost.org for most recent version. */
0013 #
0014 # ifndef BOOST_PREPROCESSOR_DEBUG_ASSERT_HPP
0015 # define BOOST_PREPROCESSOR_DEBUG_ASSERT_HPP
0016 #
0017 # include <boost/preprocessor/config/config.hpp>
0018 # include <boost/preprocessor/control/expr_iif.hpp>
0019 # include <boost/preprocessor/control/iif.hpp>
0020 # include <boost/preprocessor/logical/not.hpp>
0021 # include <boost/preprocessor/tuple/eat.hpp>
0022 #
0023 # /* BOOST_PP_ASSERT */
0024 #
0025 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0026 #    define BOOST_PP_ASSERT BOOST_PP_ASSERT_D
0027 # else
0028 #    define BOOST_PP_ASSERT(cond) BOOST_PP_ASSERT_D(cond)
0029 # endif
0030 #
0031 # define BOOST_PP_ASSERT_D(cond) BOOST_PP_IIF(BOOST_PP_NOT(cond), BOOST_PP_ASSERT_ERROR, BOOST_PP_TUPLE_EAT_1)(...)
0032 # define BOOST_PP_ASSERT_ERROR(x, y, z)
0033 #
0034 # /* BOOST_PP_ASSERT_MSG */
0035 #
0036 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
0037 #    define BOOST_PP_ASSERT_MSG BOOST_PP_ASSERT_MSG_D
0038 # else
0039 #    define BOOST_PP_ASSERT_MSG(cond, msg) BOOST_PP_ASSERT_MSG_D(cond, msg)
0040 # endif
0041 #
0042 # define BOOST_PP_ASSERT_MSG_D(cond, msg) BOOST_PP_EXPR_IIF(BOOST_PP_NOT(cond), msg)
0043 #
0044 # endif