forked from boostorg/preprocessor
Somewhat more C friendly. Some tests use templates.
[SVN r12553]
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
// Copyright (C) 2001
|
||||
// Housemarque Oy
|
||||
// http://www.housemarque.com
|
||||
//
|
||||
// Permission to copy, use, modify, sell and distribute this software is
|
||||
// granted provided this copyright notice appears in all copies. This
|
||||
// software is provided "as is" without express or implied warranty, and
|
||||
// with no claim as to its suitability for any purpose.
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
/* Copyright (C) 2001
|
||||
* Housemarque Oy
|
||||
* http://www.housemarque.com
|
||||
*
|
||||
* Permission to copy, use, modify, sell and distribute this software is
|
||||
* granted provided this copyright notice appears in all copies. This
|
||||
* software is provided "as is" without express or implied warranty, and
|
||||
* with no claim as to its suitability for any purpose.
|
||||
*
|
||||
* See http://www.boost.org for most recent version.
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/empty.hpp>
|
||||
#include <boost/preprocessor/if.hpp>
|
||||
@ -16,7 +17,7 @@
|
||||
|
||||
#include <libs/preprocessor/test/test.hpp>
|
||||
|
||||
// ***
|
||||
/* *** */
|
||||
|
||||
struct Container
|
||||
{
|
||||
@ -31,23 +32,23 @@ struct Container
|
||||
#undef BOOST_PP_DEF
|
||||
};
|
||||
|
||||
// ***
|
||||
/* *** */
|
||||
|
||||
TEST_B BOOST_PP_IF(BOOST_PP_IF(1,1,1),true,false) &&
|
||||
BOOST_PP_IF(BOOST_PP_IF(0,0,0),false,true) TEST_E
|
||||
|
||||
// ***
|
||||
/* *** */
|
||||
|
||||
#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406)
|
||||
TEST_B BOOST_PP_CAT(BOOST_PP_IF(1,tru,fals), MACRO MACRO_ARGS(e)) TEST_E
|
||||
#endif
|
||||
|
||||
// ***
|
||||
/* *** */
|
||||
|
||||
#if !(!defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406)
|
||||
char stringize_test[2] = BOOST_PP_STRINGIZE(MACRO MACRO_ARGS(X));
|
||||
#endif
|
||||
|
||||
// ***
|
||||
/* *** */
|
||||
|
||||
TEST_B BOOST_PP_TUPLE_ELEM(2,0,(1,0)) TEST_E
|
||||
|
Reference in New Issue
Block a user