]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/stringize.hpp
update
[lyx.git] / boost / boost / preprocessor / stringize.hpp
1 #ifndef BOOST_PREPROCESSOR_STRINGIZE_HPP
2 #define BOOST_PREPROCESSOR_STRINGIZE_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>Stringizes <code>X</code> after it is macro expanded.</p>
17
18 <p>For example, <code>BOOST_PP_STRINGIZE(BOOST_PP_CAT(a,b))</code> expands to <code>"ab"</code>.</p>
19
20 <h3>Example</h3>
21 <ul>
22   <li><a href="../../example/note.c">note.c</a></li>
23 </ul>
24
25 <h3>Test</h3>
26 <ul>
27   <li><a href="../../test/preprocessor_test.cpp">preprocessor_test.cpp</a></li>
28 </ul>
29 */
30 #define BOOST_PP_STRINGIZE(X) BOOST_PP_STRINGIZE_DELAY(X)
31
32 #define BOOST_PP_STRINGIZE_DELAY(X) BOOST_PP_DO_STRINGIZE(X)
33 #define BOOST_PP_DO_STRINGIZE(X) #X
34 #endif