]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/assert_msg.hpp
update
[lyx.git] / boost / boost / preprocessor / assert_msg.hpp
1 #ifndef BOOST_PREPROCESSOR_ASSERT_MSG_HPP
2 #define BOOST_PREPROCESSOR_ASSERT_MSG_HPP
3
4 /* Copyright (C) 2001
5  * Housemarque Oy
6  * http://www.housemarque.com
7  *
8  * Permission to copy, use, modify, sell and distribute this software is
9  * granted provided this copyright notice appears in all copies. This
10  * software is provided "as is" without express or implied warranty, and
11  * with no claim as to its suitability for any purpose.
12  *
13  * See http://www.boost.org for most recent version.
14  */
15
16 #include <boost/preprocessor/expr_if.hpp>
17 #include <boost/preprocessor/logical/not.hpp>
18
19 /** <p>Expands to nothing if <code>COND != 0</code> and to <code>MSG</code> if
20 <code>COND == 0</code>.</p>
21
22 <p><code>COND</code> must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].</p>
23
24 <p>For example, <code>BOOST_PP_ASSERT_MSG(1,A BUG!)</code> expands to <code>A BUG!</code>.</p>
25 */
26 #define BOOST_PP_ASSERT_MSG(COND,MSG) BOOST_PP_EXPR_IF(BOOST_PP_NOT(COND),MSG)
27 #endif