1 #ifndef BOOST_PREPROCESSOR_IDENTITY_HPP
2 #define BOOST_PREPROCESSOR_IDENTITY_HPP
6 * http://www.housemarque.com
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.
13 * See http://www.boost.org for most recent version.
16 #include <boost/preprocessor/empty.hpp>
18 /** <p>Expands to <code>X</code> once invoked.</p>
20 <p>Designed to be used with BOOST_PP_IF(), when one of the clauses need to be
26 BOOST_PP_IF(1,BOOST_PP_IDENTITY(X),BOOST_PP_EMPTY)<b>()</b>
37 <li><a href="../../test/preprocessor_test.cpp">preprocessor_test.cpp</a></li>
40 #define BOOST_PP_IDENTITY(X) X BOOST_PP_EMPTY
42 /* <p>Obsolete. Use BOOST_PP_IDENTITY().</p> */
43 #define BOOST_PREPROCESSOR_IDENTITY(X) BOOST_PP_IDENTITY(X)