forked from boostorg/preprocessor
CWPro8.2 patches
[SVN r14999]
This commit is contained in:
@ -32,7 +32,7 @@ BOOST_PP_TUPLE_ELEM(2,1,(A,B))
|
||||
</ul>
|
||||
*/
|
||||
|
||||
#if !defined(__MWERKS__) || __MWERKS__ > 0x3001
|
||||
#if !defined(__MWERKS__) || defined(BOOST_NO_COMPILER_CONFIG) || __MWERKS__ > 0x3002
|
||||
# define BOOST_PP_TUPLE_ELEM(SIZE_OF_TUPLE,INDEX,TUPLE)\
|
||||
BOOST_PP_DETAIL_EXPAND2(\
|
||||
BOOST_PP_DETAIL_CAT2(BOOST_PP_TUPLE16_ELEM,INDEX)\
|
||||
|
@ -25,13 +25,13 @@ BOOST_PP_TUPLE_REVERSE(3,(A,B,C))
|
||||
*/
|
||||
#define BOOST_PP_TUPLE_REVERSE(SIZE_OF_TUPLE,TUPLE) BOOST_PP_TUPLE_REVERSE_DELAY(SIZE_OF_TUPLE,TUPLE)
|
||||
|
||||
#if !defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__)
|
||||
#if defined(BOOST_NO_COMPILER_CONFIG) || !defined(__MWERKS__) || __MWERKS__ > 0x3002
|
||||
# define BOOST_PP_TUPLE_REVERSE_DELAY(N,T) BOOST_PP_TUPLE##N##_REVERSE T
|
||||
#else
|
||||
/* This is a workaround for a CodeWarrior PP bug. Strictly speaking
|
||||
* this workaround invokes undefined behavior, but it works as desired.
|
||||
*/
|
||||
# define BOOST_PP_TUPLE_REVERSE_DELAY(N,T) BOOST_PP_TUPLE##N##_REVERSE##T
|
||||
#else
|
||||
# define BOOST_PP_TUPLE_REVERSE_DELAY(N,T) BOOST_PP_TUPLE##N##_REVERSE T
|
||||
#endif
|
||||
#define BOOST_PP_TUPLE0_REVERSE() ()
|
||||
#define BOOST_PP_TUPLE1_REVERSE(A) (A)
|
||||
|
@ -39,13 +39,13 @@ BOOST_PP_LIST_NIL)))
|
||||
*/
|
||||
#define BOOST_PP_TUPLE_TO_LIST(SIZE_OF_TUPLE,TUPLE) BOOST_PP_TUPLE_TO_LIST_DELAY(SIZE_OF_TUPLE,TUPLE)
|
||||
|
||||
#if !defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__)
|
||||
#if defined(BOOST_NO_COMPILER_CONFIG) || !defined(__MWERKS__) || __MWERKS__ > 0x3002
|
||||
# define BOOST_PP_TUPLE_TO_LIST_DELAY(N,T) BOOST_PP_TUPLE##N##_TO_LIST T
|
||||
#else
|
||||
/* This is a workaround for a CodeWarrior PP bug. Strictly speaking
|
||||
* this workaround invokes undefined behavior, but it works as desired.
|
||||
*/
|
||||
# define BOOST_PP_TUPLE_TO_LIST_DELAY(N,T) BOOST_PP_TUPLE##N##_TO_LIST##T
|
||||
#else
|
||||
# define BOOST_PP_TUPLE_TO_LIST_DELAY(N,T) BOOST_PP_TUPLE##N##_TO_LIST T
|
||||
#endif
|
||||
#define BOOST_PP_TUPLE0_TO_LIST() (_,_,0)
|
||||
#define BOOST_PP_TUPLE1_TO_LIST(A) (A,(_,_,0),1)
|
||||
|
Reference in New Issue
Block a user