From fa88c0d360606d79d66f177d3593e2d0e2d88987 Mon Sep 17 00:00:00 2001 From: Vesa Karvonen Date: Tue, 22 Jan 2002 13:32:06 +0000 Subject: [PATCH] Changed implementation to allow macro expansion of macro arguments [SVN r12436] --- include/boost/preprocessor/cat.hpp | 9 +++++---- include/boost/preprocessor/stringize.hpp | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/include/boost/preprocessor/cat.hpp b/include/boost/preprocessor/cat.hpp index ea08cc8..6ee8ea4 100644 --- a/include/boost/preprocessor/cat.hpp +++ b/include/boost/preprocessor/cat.hpp @@ -17,7 +17,7 @@ Click here to see the header. */ -//! 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 */ -#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 diff --git a/include/boost/preprocessor/stringize.hpp b/include/boost/preprocessor/stringize.hpp index 2cd0ca0..71ffc74 100644 --- a/include/boost/preprocessor/stringize.hpp +++ b/include/boost/preprocessor/stringize.hpp @@ -17,7 +17,7 @@ Click here to see the header. */ -//! 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 */ -#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().