Changed implementation to allow macro expansion of macro arguments

[SVN r12436]
This commit is contained in:
Vesa Karvonen
2002-01-22 13:32:06 +00:00
parent 178a8ab429
commit fa88c0d360
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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().