mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-15 13:36:33 +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>
|
||||
*/
|
||||
|
||||
//! Delays the catenation of L and R.
|
||||
//! Delays the catenation of X and Y.
|
||||
/*!
|
||||
For example,
|
||||
|
||||
@ -62,12 +62,13 @@ the above would expand to:
|
||||
];
|
||||
\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
|
||||
#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
|
||||
|
||||
//! 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
|
||||
|
@ -17,7 +17,7 @@
|
||||
<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,
|
||||
|
||||
@ -44,10 +44,11 @@ expand to:
|
||||
#pragma message("examples.cpp" "(" "__LINE__" ") : " "TBD!")
|
||||
\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
|
||||
#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
|
||||
|
||||
//! Obsolete. Use BOOST_PP_STRINGIZE().
|
||||
|
Reference in New Issue
Block a user