mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-15 21:42:08 +02:00
Changed implementation to allow macro expansion of macro arguments
[SVN r12436]
This commit is contained in:
@ -17,7 +17,7 @@
|
|||||||
<a href="../../../../boost/preprocessor/cat.hpp">Click here to see the header.</a>
|
<a href="../../../../boost/preprocessor/cat.hpp">Click here to see the header.</a>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! Delays the catenation of L and R.
|
//! Delays the catenation of X and Y.
|
||||||
/*!
|
/*!
|
||||||
For example,
|
For example,
|
||||||
|
|
||||||
@ -62,12 +62,13 @@ the above would expand to:
|
|||||||
];
|
];
|
||||||
\endverbatim</PRE>
|
\endverbatim</PRE>
|
||||||
*/
|
*/
|
||||||
#define BOOST_PP_CAT(L,R) BOOST_PP_CAT_DELAY(L,R)
|
#define BOOST_PP_CAT(X,Y) BOOST_PP_CAT_DELAY(X,Y)
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
#define BOOST_PP_CAT_DELAY(L,R) L##R
|
#define BOOST_PP_CAT_DELAY(X,Y) BOOST_PP_DO_CAT(X,Y)
|
||||||
|
#define BOOST_PP_DO_CAT(X,Y) X##Y
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//! Obsolete. Use BOOST_PP_CAT().
|
//! Obsolete. Use BOOST_PP_CAT().
|
||||||
#define BOOST_PREPROCESSOR_CAT(L,R) BOOST_PP_CAT(L,R)
|
#define BOOST_PREPROCESSOR_CAT(X,Y) BOOST_PP_CAT(X,Y)
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<a href="../../../../boost/preprocessor/stringize.hpp">Click here to see the header.</a>
|
<a href="../../../../boost/preprocessor/stringize.hpp">Click here to see the header.</a>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! Delays the stringization of E.
|
//! Delays the stringization of X.
|
||||||
/*!
|
/*!
|
||||||
For example,
|
For example,
|
||||||
|
|
||||||
@ -44,10 +44,11 @@ expand to:
|
|||||||
#pragma message("examples.cpp" "(" "__LINE__" ") : " "TBD!")
|
#pragma message("examples.cpp" "(" "__LINE__" ") : " "TBD!")
|
||||||
\endverbatim</PRE>
|
\endverbatim</PRE>
|
||||||
*/
|
*/
|
||||||
#define BOOST_PP_STRINGIZE(E) BOOST_PP_STRINGIZE_DELAY(E)
|
#define BOOST_PP_STRINGIZE(X) BOOST_PP_STRINGIZE_DELAY(X)
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
#define BOOST_PP_STRINGIZE_DELAY(E) #E
|
#define BOOST_PP_STRINGIZE_DELAY(X) BOOST_PP_DO_STRINGIZE(X)
|
||||||
|
#define BOOST_PP_DO_STRINGIZE(X) #X
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//! Obsolete. Use BOOST_PP_STRINGIZE().
|
//! Obsolete. Use BOOST_PP_STRINGIZE().
|
||||||
|
Reference in New Issue
Block a user