]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/cat.hpp
update
[lyx.git] / boost / boost / preprocessor / cat.hpp
1 #ifndef BOOST_PREPROCESSOR_CAT_HPP
2 #define BOOST_PREPROCESSOR_CAT_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 /** <p>Concatenates <code>X</code> and <code>Y</code> after they are macro
17 expanded.</p>
18
19 <p>For example, <code>BOOST_PP_CAT(A,BOOST_PP_CAT(_,B))</code> expands to <code>A_B</code>.</p>
20
21 <h3>Example</h3>
22 <ul>
23   <li><a href="../../example/static_assert.c">static_assert.c</a></li>
24 </ul>
25
26 <h3>Test</h3>
27 <ul>
28   <li><a href="../../test/preprocessor_test.cpp">preprocessor_test.cpp</a></li>
29 </ul>
30 */
31 #define BOOST_PP_CAT(X,Y) BOOST_PP_CAT_DELAY(X,Y)
32
33 #define BOOST_PP_CAT_DELAY(X,Y) BOOST_PP_DO_CAT(X,Y)
34 #define BOOST_PP_DO_CAT(X,Y) X##Y
35 #endif