|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72928 - in branches/pplib/v2: boost/preprocessor boost/preprocessor/debug boost/preprocessor/facilities libs/preprocessor/test
From: eldiener_at_[hidden]
Date: 2011-07-06 14:14:56
Author: eldiener
Date: 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
New Revision: 72928
URL: http://svn.boost.org/trac/boost/changeset/72928
Log:
Added assert macros for tuple and array, updated tests, and updated jamfile
Added:
branches/pplib/v2/boost/preprocessor/debug/assert_is_array.hpp (contents, props changed)
branches/pplib/v2/boost/preprocessor/debug/assert_is_tuple.hpp (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/arithmetic.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/array.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/comparison.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/control.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/debug.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/debug_fail.c (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/debug_fail.cpp (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/debug_fail.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/facilities.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/list.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/logical.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/selection.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/seq.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/slot.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/tuple.cxx (contents, props changed)
branches/pplib/v2/libs/preprocessor/test/variadic.cxx (contents, props changed)
Removed:
branches/pplib/v2/boost/preprocessor/facilities/is_tuple.hpp
Text files modified:
branches/pplib/v2/boost/preprocessor/debug.hpp | 2
branches/pplib/v2/boost/preprocessor/facilities.hpp | 1
branches/pplib/v2/libs/preprocessor/test/Jamfile.v2 | 41 +++++++++++++----
branches/pplib/v2/libs/preprocessor/test/arithmetic.c | 52 ----------------------
branches/pplib/v2/libs/preprocessor/test/arithmetic.cpp | 52 ----------------------
branches/pplib/v2/libs/preprocessor/test/array.c | 81 ----------------------------------
branches/pplib/v2/libs/preprocessor/test/array.cpp | 81 ----------------------------------
branches/pplib/v2/libs/preprocessor/test/comparison.c | 35 --------------
branches/pplib/v2/libs/preprocessor/test/comparison.cpp | 35 --------------
branches/pplib/v2/libs/preprocessor/test/control.c | 30 ------------
branches/pplib/v2/libs/preprocessor/test/control.cpp | 30 ------------
branches/pplib/v2/libs/preprocessor/test/debug.c | 13 +----
branches/pplib/v2/libs/preprocessor/test/debug.cpp | 13 +----
branches/pplib/v2/libs/preprocessor/test/facilities.c | 47 --------------------
branches/pplib/v2/libs/preprocessor/test/facilities.cpp | 47 --------------------
branches/pplib/v2/libs/preprocessor/test/list.c | 49 --------------------
branches/pplib/v2/libs/preprocessor/test/list.cpp | 49 --------------------
branches/pplib/v2/libs/preprocessor/test/logical.c | 26 ----------
branches/pplib/v2/libs/preprocessor/test/logical.cpp | 26 ----------
branches/pplib/v2/libs/preprocessor/test/selection.c | 11 ----
branches/pplib/v2/libs/preprocessor/test/selection.cpp | 11 ----
branches/pplib/v2/libs/preprocessor/test/seq.c | 78 ---------------------------------
branches/pplib/v2/libs/preprocessor/test/seq.cpp | 78 ---------------------------------
branches/pplib/v2/libs/preprocessor/test/slot.c | 17 ------
branches/pplib/v2/libs/preprocessor/test/slot.cpp | 17 ------
branches/pplib/v2/libs/preprocessor/test/tuple.c | 92 ---------------------------------------
branches/pplib/v2/libs/preprocessor/test/tuple.cpp | 92 ---------------------------------------
branches/pplib/v2/libs/preprocessor/test/variadic.c | 46 -------------------
branches/pplib/v2/libs/preprocessor/test/variadic.cpp | 46 -------------------
29 files changed, 62 insertions(+), 1136 deletions(-)
Modified: branches/pplib/v2/boost/preprocessor/debug.hpp
==============================================================================
--- branches/pplib/v2/boost/preprocessor/debug.hpp (original)
+++ branches/pplib/v2/boost/preprocessor/debug.hpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -13,6 +13,8 @@
# define BOOST_PREPROCESSOR_DEBUG_HPP
#
# include <boost/preprocessor/debug/assert.hpp>
+# include <boost/preprocessor/debug/assert_is_tuple.hpp>
+# include <boost/preprocessor/debug/assert_is_array.hpp>
# include <boost/preprocessor/debug/line.hpp>
#
# endif
Added: branches/pplib/v2/boost/preprocessor/debug/assert_is_array.hpp
==============================================================================
--- (empty file)
+++ branches/pplib/v2/boost/preprocessor/debug/assert_is_array.hpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,158 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Edward Diener 2011. *
+# * Distributed under the Boost Software License, Version 1.0. (See *
+# * accompanying file LICENSE_1_0.txt or copy at *
+# * http://www.boost.org/LICENSE_1_0.txt) *
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# ifndef BOOST_PREPROCESSOR_DEBUG_ASSERT_IS_ARRAY_HPP
+# define BOOST_PREPROCESSOR_DEBUG_ASSERT_IS_ARRAY_HPP
+#
+# include <boost/preprocessor/config/config.hpp>
+# include <boost/preprocessor/comparison/equal.hpp>
+# include <boost/preprocessor/control/iif.hpp>
+# include <boost/preprocessor/debug/assert.hpp>
+# include <boost/preprocessor/debug/assert_is_tuple.hpp>
+# include <boost/preprocessor/logical/bitand.hpp>
+# include <boost/preprocessor/tuple/elem.hpp>
+# include <boost/preprocessor/tuple/size.hpp>
+#
+# /* BOOST_PP_ASSERT_IS_ARRAY */
+#
+# if BOOST_PP_VARIADICS
+# if defined(NDEBUG)
+# define BOOST_PP_ASSERT_IS_ARRAY(x) \
+/**/
+# else
+
+/*
+
+ Check if the array is a two element tuple
+
+*/
+
+# define BOOST_PP_ASSERT_IS_ARRAY(x) \
+ BOOST_PP_ASSERT_IS_TUPLE(x) \
+ BOOST_PP_ASSERT \
+ ( \
+ BOOST_PP_IIF \
+ ( \
+ BOOST_PP_EQUAL(2,BOOST_PP_TUPLE_SIZE(x)), \
+ BOOST_PP_IS_ARRAY_DETAIL_CHECK_ARRAY_FORM, \
+ BOOST_PP_IS_ARRAY_DETAIL_GEN_ZERO \
+ ) \
+ (x) \
+ ) \
+/**/
+#
+
+/*
+
+ Check if the first element of the tuple is numeric
+
+*/
+
+# define BOOST_PP_IS_ARRAY_DETAIL_CHECK_ARRAY_FORM(x) \
+ BOOST_PP_IIF \
+ ( \
+ BOOST_PP_IS_ARRAY_DETAIL_NUM(BOOST_PP_TUPLE_ELEM(0,x)), \
+ BOOST_PP_IS_ARRAY_DETAIL_CHECK_NUMERIC_MATCH, \
+ BOOST_PP_IS_ARRAY_DETAIL_GEN_ZERO \
+ ) \
+ (x) \
+/**/
+#
+
+/*
+
+ Finally check if the first element of the tuple is equal to the number of tuple elements of the second element
+
+*/
+
+# define BOOST_PP_IS_ARRAY_DETAIL_CHECK_NUMERIC_MATCH(x) \
+ BOOST_PP_ASSERT_IS_TUPLE(BOOST_PP_TUPLE_ELEM(1,x)) \
+ BOOST_PP_IIF \
+ ( \
+ BOOST_PP_EQUAL(BOOST_PP_TUPLE_ELEM(0,x),BOOST_PP_TUPLE_SIZE(BOOST_PP_TUPLE_ELEM(1,x))), \
+ 1, \
+ 0 \
+ ) \
+/**/
+#
+# define BOOST_PP_IS_ARRAY_DETAIL_GEN_ZERO(x) \
+ 0 \
+/**/
+#
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM(x) BOOST_PP_IS_EMPTY(BOOST_PP_CAT(BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_, x))
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_1
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_2
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_3
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_4
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_5
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_6
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_7
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_8
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_9
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_10
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_11
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_12
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_13
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_14
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_15
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_16
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_17
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_18
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_19
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_20
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_21
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_22
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_23
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_24
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_25
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_26
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_27
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_28
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_29
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_30
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_31
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_32
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_33
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_34
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_35
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_36
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_37
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_38
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_39
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_40
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_41
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_42
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_43
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_44
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_45
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_46
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_47
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_48
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_49
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_50
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_51
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_52
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_53
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_54
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_55
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_56
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_57
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_58
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_59
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_60
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_61
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_62
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_63
+# define BOOST_PP_IS_ARRAY_DETAIL_NUM_HELPER_64
+#
+# endif /* NDEBUG */
+# endif /* BOOST_PP_VARIADICS */
+# endif /* BOOST_PREPROCESSOR_DEBUG_ASSERT_IS_ARRAY_HPP */
Added: branches/pplib/v2/boost/preprocessor/debug/assert_is_tuple.hpp
==============================================================================
--- (empty file)
+++ branches/pplib/v2/boost/preprocessor/debug/assert_is_tuple.hpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,54 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Edward Diener 2011. *
+# * Distributed under the Boost Software License, Version 1.0. (See *
+# * accompanying file LICENSE_1_0.txt or copy at *
+# * http://www.boost.org/LICENSE_1_0.txt) *
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# ifndef BOOST_PREPROCESSOR_DEBUG_ASSERT_IS_TUPLE_HPP
+# define BOOST_PREPROCESSOR_DEBUG_ASSERT_IS_TUPLE_HPP
+#
+# include <boost/preprocessor/config/config.hpp>
+# include <boost/preprocessor/control/iif.hpp>
+# include <boost/preprocessor/debug/assert.hpp>
+# include <boost/preprocessor/facilities/is_empty.hpp>
+# include <boost/preprocessor/facilities/is_tuple_begin.hpp>
+#
+# /* BOOST_PP_ASSERT_IS_TUPLE */
+#
+# if BOOST_PP_VARIADICS
+# if defined(NDEBUG)
+# define BOOST_PP_ASSERT_IS_TUPLE(x) \
+/**/
+# else
+# define BOOST_PP_ASSERT_IS_TUPLE(x) \
+ BOOST_PP_ASSERT \
+ ( \
+ BOOST_PP_IIF \
+ ( \
+ BOOST_PP_IS_TUPLE_BEGIN(x), \
+ BOOST_PP_IS_TUPLE_DETAIL_IS_NOT_AFTER, \
+ BOOST_PP_IS_TUPLE_DETAIL_GEN_ZERO \
+ ) \
+ (x) \
+ ) \
+/**/
+#
+# define BOOST_PP_IS_TUPLE_DETAIL_IS_NOT_AFTER(x) \
+ BOOST_PP_IS_EMPTY(BOOST_PP_IS_TUPLE_DETAIL_EXPAND_AFTER x) \
+/**/
+#
+# define BOOST_PP_IS_TUPLE_DETAIL_EXPAND_AFTER(...) \
+/**/
+#
+# define BOOST_PP_IS_TUPLE_DETAIL_GEN_ZERO(x) \
+ 0 \
+/**/
+#
+# endif /* NDEBUG */
+# endif /* BOOST_PP_VARIADICS */
+# endif /* BOOST_PREPROCESSOR_DEBUG_ASSERT_IS_TUPLE_HPP */
Modified: branches/pplib/v2/boost/preprocessor/facilities.hpp
==============================================================================
--- branches/pplib/v2/boost/preprocessor/facilities.hpp (original)
+++ branches/pplib/v2/boost/preprocessor/facilities.hpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -18,7 +18,6 @@
# include <boost/preprocessor/facilities/expand.hpp>
# include <boost/preprocessor/facilities/identity.hpp>
# include <boost/preprocessor/facilities/intercept.hpp>
-# include <boost/preprocessor/facilities/is_tuple.hpp>
# include <boost/preprocessor/facilities/is_tuple_begin.hpp>
# include <boost/preprocessor/facilities/overload.hpp>
#
Deleted: branches/pplib/v2/boost/preprocessor/facilities/is_tuple.hpp
==============================================================================
--- branches/pplib/v2/boost/preprocessor/facilities/is_tuple.hpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
+++ (empty file)
@@ -1,45 +0,0 @@
-# /* **************************************************************************
-# * *
-# * (C) Copyright Edward Diener 2011. *
-# * Distributed under the Boost Software License, Version 1.0. (See *
-# * accompanying file LICENSE_1_0.txt or copy at *
-# * http://www.boost.org/LICENSE_1_0.txt) *
-# * *
-# ************************************************************************** */
-#
-# /* See http://www.boost.org for most recent version. */
-#
-# ifndef BOOST_PREPROCESSOR_FACILITIES_IS_TUPLE_HPP
-# define BOOST_PREPROCESSOR_FACILITIES_IS_TUPLE_HPP
-#
-# include <boost/preprocessor/config/config.hpp>
-# include <boost/preprocessor/control/iif.hpp>
-# include <boost/preprocessor/facilities/is_empty.hpp>
-# include <boost/preprocessor/facilities/is_tuple_begin.hpp>
-#
-# /* BOOST_PP_IS_TUPLE */
-#
-# if BOOST_PP_VARIADICS
-# define BOOST_PP_IS_TUPLE(x) \
- BOOST_PP_IIF \
- ( \
- BOOST_PP_IS_TUPLE_BEGIN(x), \
- BOOST_PP_IS_TUPLE_DETAIL_IS_NOT_AFTER, \
- BOOST_PP_IS_TUPLE_DETAIL_GEN_ZERO \
- ) \
- (x) \
-/**/
-#
-# define BOOST_PP_IS_TUPLE_DETAIL_IS_NOT_AFTER(x) \
- BOOST_PP_IS_EMPTY(BOOST_PP_IS_TUPLE_DETAIL_EXPAND_AFTER x) \
-/**/
-#
-# define BOOST_PP_IS_TUPLE_DETAIL_EXPAND_AFTER(...) \
-/**/
-#
-# define BOOST_PP_IS_TUPLE_DETAIL_GEN_ZERO(x) \
- 0 \
-/**/
-#
-# endif /* BOOST_PP_VARIADICS */
-# endif /* BOOST_PREPROCESSOR_IS_TUPLE_HPP */
Modified: branches/pplib/v2/libs/preprocessor/test/Jamfile.v2
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/Jamfile.v2 (original)
+++ branches/pplib/v2/libs/preprocessor/test/Jamfile.v2 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -32,7 +32,7 @@
[ compile slot.cpp ]
[ compile tuple.cpp ]
[ compile variadic.cpp ]
- ;
+ ;
test-suite preprocessor_gcc
:
@@ -96,13 +96,13 @@
: <cflags>-std=c++0x
: variadic_gcc
]
- :
- <toolset>gcc-4.3.0
- <toolset>gcc-4.4.0
- <toolset>gcc-4.5.0
- <toolset>gcc-4.5.2
- <toolset>gcc-4.6.0
- ;
+ :
+ <toolset>gcc-4.3.0
+ <toolset>gcc-4.4.0
+ <toolset>gcc-4.5.0
+ <toolset>gcc-4.5.2
+ <toolset>gcc-4.6.0
+ ;
test-suite preprocessor_gcc ;
@@ -122,7 +122,16 @@
[ compile seq.cpp : <define>BOOST_PP_VARIADICS=0 : seq_nvm ]
[ compile slot.cpp : <define>BOOST_PP_VARIADICS=0 : slot_nvm ]
[ compile tuple.cpp : <define>BOOST_PP_VARIADICS=0 : tuple_nvm ]
- ;
+ ;
+
+test-suite preprocessor_dbg
+ :
+ [ compile-fail debug_fail.cpp
+ : <variant>debug
+ <define>BOOST_PP_VARIADICS=1
+ <toolset>gcc:<cflags>-std=c++0x
+ ]
+ ;
test-suite preprocessor_c
:
@@ -178,7 +187,7 @@
: <toolset>gcc:<cflags>-std=c99
: variadic_c
]
- ;
+ ;
test-suite preprocessor_c_nvm
:
@@ -242,4 +251,14 @@
<toolset>gcc:<cflags>-std=c99
: tuple_c_nvm
]
- ;
+ ;
+
+test-suite preprocessor_c_dbg
+ :
+ [ compile-fail debug_fail.c
+ : <variant>debug
+ <define>BOOST_PP_VARIADICS=1
+ <toolset>gcc:<cflags>-std=c99
+ : debug_fail_c
+ ]
+ ;
Modified: branches/pplib/v2/libs/preprocessor/test/arithmetic.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/arithmetic.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/arithmetic.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,54 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/arithmetic.hpp>
-# include <boost/preprocessor/config/limits.hpp>
-# include <libs/preprocessor/test/test.h>
-
-/* addition */
-
-BEGIN BOOST_PP_ADD(2, 3) == 5 END
-
-BEGIN BOOST_PP_ADD(BOOST_PP_ADD(2, 2), 2) == 6 END
-BEGIN BOOST_PP_ADD(2, BOOST_PP_ADD(1, 4)) == 7 END
-BEGIN BOOST_PP_ADD(BOOST_PP_ADD(2, 2), BOOST_PP_ADD(2, 2)) == 8 END
-
-/* subtraction */
-
-BEGIN BOOST_PP_SUB(11, 0) == 11 END
-BEGIN BOOST_PP_SUB(12, 1) == 11 END
-BEGIN BOOST_PP_SUB(3, 4) == 0 END
-
-BEGIN BOOST_PP_SUB(5, BOOST_PP_SUB(3, 2)) == 4 END
-BEGIN BOOST_PP_SUB(BOOST_PP_SUB(10, 5), 2) == 3 END
-BEGIN BOOST_PP_SUB(BOOST_PP_SUB(7, 3), BOOST_PP_SUB(10, 8)) == 2 END
-
-/* multiplication */
-
-BEGIN BOOST_PP_MUL(0, 1) == 0 END
-BEGIN BOOST_PP_MUL(1, 0) == 0 END
-BEGIN BOOST_PP_MUL(1, 1) == 1 END
-BEGIN BOOST_PP_MUL(4, 3) == 12 END
-
-BEGIN BOOST_PP_MUL(BOOST_PP_MUL(2, 2), 2) == 8 END
-BEGIN BOOST_PP_MUL(2, BOOST_PP_MUL(2, 2)) == 8 END
-BEGIN BOOST_PP_MUL(BOOST_PP_MUL(2, 2), BOOST_PP_MUL(2, 2)) == 16 END
-
-/* division */
-
-BEGIN BOOST_PP_DIV(2, 1) == 2 END
-BEGIN BOOST_PP_DIV(0, 5) == 0 END
-BEGIN BOOST_PP_DIV(7, 3) == 2 END
-
-BEGIN BOOST_PP_DIV(BOOST_PP_DIV(4, 2), 2) == 1 END
-BEGIN BOOST_PP_DIV(10, BOOST_PP_DIV(10, 2)) == 2 END
-BEGIN BOOST_PP_DIV(BOOST_PP_DIV(10, 2), BOOST_PP_DIV(4, 2)) == 2 END
-
-/* modulus */
-
-BEGIN BOOST_PP_MOD(5, 5) == 0 END
-BEGIN BOOST_PP_MOD(9, 5) == 4 END
-BEGIN BOOST_PP_MOD(7, 4) == 3 END
-
-BEGIN BOOST_PP_MOD(BOOST_PP_MOD(5, 3), 3) == 2 END
-BEGIN BOOST_PP_MOD(5, BOOST_PP_MOD(4, 3)) == 0 END
+# include <libs/preprocessor/test/arithmetic.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/arithmetic.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/arithmetic.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/arithmetic.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,54 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/arithmetic.hpp>
-# include <boost/preprocessor/config/limits.hpp>
-# include <libs/preprocessor/test/test.h>
-
-// addition
-
-BEGIN BOOST_PP_ADD(2, 3) == 5 END
-
-BEGIN BOOST_PP_ADD(BOOST_PP_ADD(2, 2), 2) == 6 END
-BEGIN BOOST_PP_ADD(2, BOOST_PP_ADD(1, 4)) == 7 END
-BEGIN BOOST_PP_ADD(BOOST_PP_ADD(2, 2), BOOST_PP_ADD(2, 2)) == 8 END
-
-// subtraction
-
-BEGIN BOOST_PP_SUB(11, 0) == 11 END
-BEGIN BOOST_PP_SUB(12, 1) == 11 END
-BEGIN BOOST_PP_SUB(3, 4) == 0 END
-
-BEGIN BOOST_PP_SUB(5, BOOST_PP_SUB(3, 2)) == 4 END
-BEGIN BOOST_PP_SUB(BOOST_PP_SUB(10, 5), 2) == 3 END
-BEGIN BOOST_PP_SUB(BOOST_PP_SUB(7, 3), BOOST_PP_SUB(10, 8)) == 2 END
-
-// multiplication
-
-BEGIN BOOST_PP_MUL(0, 1) == 0 END
-BEGIN BOOST_PP_MUL(1, 0) == 0 END
-BEGIN BOOST_PP_MUL(1, 1) == 1 END
-BEGIN BOOST_PP_MUL(4, 3) == 12 END
-
-BEGIN BOOST_PP_MUL(BOOST_PP_MUL(2, 2), 2) == 8 END
-BEGIN BOOST_PP_MUL(2, BOOST_PP_MUL(2, 2)) == 8 END
-BEGIN BOOST_PP_MUL(BOOST_PP_MUL(2, 2), BOOST_PP_MUL(2, 2)) == 16 END
-
-// division
-
-BEGIN BOOST_PP_DIV(2, 1) == 2 END
-BEGIN BOOST_PP_DIV(0, 5) == 0 END
-BEGIN BOOST_PP_DIV(7, 3) == 2 END
-
-BEGIN BOOST_PP_DIV(BOOST_PP_DIV(4, 2), 2) == 1 END
-BEGIN BOOST_PP_DIV(10, BOOST_PP_DIV(10, 2)) == 2 END
-BEGIN BOOST_PP_DIV(BOOST_PP_DIV(10, 2), BOOST_PP_DIV(4, 2)) == 2 END
-
-// modulus
-
-BEGIN BOOST_PP_MOD(5, 5) == 0 END
-BEGIN BOOST_PP_MOD(9, 5) == 4 END
-BEGIN BOOST_PP_MOD(7, 4) == 3 END
-
-BEGIN BOOST_PP_MOD(BOOST_PP_MOD(5, 3), 3) == 2 END
-BEGIN BOOST_PP_MOD(5, BOOST_PP_MOD(4, 3)) == 0 END
+# include <libs/preprocessor/test/arithmetic.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/arithmetic.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/arithmetic.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,62 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/arithmetic.hpp>
+# include <boost/preprocessor/config/limits.hpp>
+# include <libs/preprocessor/test/test.h>
+
+/* addition */
+
+BEGIN BOOST_PP_ADD(2, 3) == 5 END
+
+BEGIN BOOST_PP_ADD(BOOST_PP_ADD(2, 2), 2) == 6 END
+BEGIN BOOST_PP_ADD(2, BOOST_PP_ADD(1, 4)) == 7 END
+BEGIN BOOST_PP_ADD(BOOST_PP_ADD(2, 2), BOOST_PP_ADD(2, 2)) == 8 END
+
+/* subtraction */
+
+BEGIN BOOST_PP_SUB(11, 0) == 11 END
+BEGIN BOOST_PP_SUB(12, 1) == 11 END
+BEGIN BOOST_PP_SUB(3, 4) == 0 END
+
+BEGIN BOOST_PP_SUB(5, BOOST_PP_SUB(3, 2)) == 4 END
+BEGIN BOOST_PP_SUB(BOOST_PP_SUB(10, 5), 2) == 3 END
+BEGIN BOOST_PP_SUB(BOOST_PP_SUB(7, 3), BOOST_PP_SUB(10, 8)) == 2 END
+
+/* multiplication */
+
+BEGIN BOOST_PP_MUL(0, 1) == 0 END
+BEGIN BOOST_PP_MUL(1, 0) == 0 END
+BEGIN BOOST_PP_MUL(1, 1) == 1 END
+BEGIN BOOST_PP_MUL(4, 3) == 12 END
+
+BEGIN BOOST_PP_MUL(BOOST_PP_MUL(2, 2), 2) == 8 END
+BEGIN BOOST_PP_MUL(2, BOOST_PP_MUL(2, 2)) == 8 END
+BEGIN BOOST_PP_MUL(BOOST_PP_MUL(2, 2), BOOST_PP_MUL(2, 2)) == 16 END
+
+/* division */
+
+BEGIN BOOST_PP_DIV(2, 1) == 2 END
+BEGIN BOOST_PP_DIV(0, 5) == 0 END
+BEGIN BOOST_PP_DIV(7, 3) == 2 END
+
+BEGIN BOOST_PP_DIV(BOOST_PP_DIV(4, 2), 2) == 1 END
+BEGIN BOOST_PP_DIV(10, BOOST_PP_DIV(10, 2)) == 2 END
+BEGIN BOOST_PP_DIV(BOOST_PP_DIV(10, 2), BOOST_PP_DIV(4, 2)) == 2 END
+
+/* modulus */
+
+BEGIN BOOST_PP_MOD(5, 5) == 0 END
+BEGIN BOOST_PP_MOD(9, 5) == 4 END
+BEGIN BOOST_PP_MOD(7, 4) == 3 END
+
+BEGIN BOOST_PP_MOD(BOOST_PP_MOD(5, 3), 3) == 2 END
+BEGIN BOOST_PP_MOD(5, BOOST_PP_MOD(4, 3)) == 0 END
Modified: branches/pplib/v2/libs/preprocessor/test/array.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/array.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/array.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,83 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/array.hpp>
-# include <libs/preprocessor/test/test.h>
-# include <boost/preprocessor/list/at.hpp>
-# include <boost/preprocessor/seq/elem.hpp>
-# include <boost/preprocessor/tuple/elem.hpp>
-# if BOOST_PP_VARIADICS
-# include <boost/preprocessor/variadic/size.hpp>
-# include <boost/preprocessor/variadic/elem.hpp>
-# endif
-
-# define ARRAY (3, (0, 1, 2))
-# define ARRAY_LARGE (33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))
-# define ARRAY_VERY_LARGE (64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))
-
-// element access
-
-BEGIN BOOST_PP_ARRAY_ELEM(1, ARRAY) == 1 END
-BEGIN BOOST_PP_ARRAY_ELEM(2, (5, (0, 1, 2, 3, 4))) == 2 END
-BEGIN BOOST_PP_ARRAY_ELEM(28, ARRAY_LARGE) == 28 END
-BEGIN BOOST_PP_ARRAY_ELEM(17, (33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))) == 17 END
-BEGIN BOOST_PP_ARRAY_ELEM(42, ARRAY_VERY_LARGE) == 42 END
-BEGIN BOOST_PP_ARRAY_ELEM(62, (64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))) == 62 END
-
-// size
-
-BEGIN BOOST_PP_ARRAY_SIZE(ARRAY) == 3 END
-BEGIN BOOST_PP_ARRAY_SIZE((5, (0, 1, 2, 3, 4))) == 5 END
-BEGIN BOOST_PP_ARRAY_SIZE(ARRAY_LARGE) == 33 END
-BEGIN BOOST_PP_ARRAY_SIZE((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))) == 33 END
-BEGIN BOOST_PP_ARRAY_SIZE(ARRAY_VERY_LARGE) == 64 END
-BEGIN BOOST_PP_ARRAY_SIZE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))) == 64 END
-
-// enum
-
-# if BOOST_PP_VARIADICS
-
-BEGIN BOOST_PP_VARIADIC_ELEM(2,BOOST_PP_ARRAY_ENUM(ARRAY)) == 2 END
-BEGIN BOOST_PP_VARIADIC_ELEM(3,BOOST_PP_ARRAY_ENUM((5, (0, 1, 2, 3, 4)))) == 3 END
-BEGIN BOOST_PP_VARIADIC_ELEM(31,BOOST_PP_ARRAY_ENUM(ARRAY_LARGE)) == 31 END
-BEGIN BOOST_PP_VARIADIC_ELEM(13,BOOST_PP_ARRAY_ENUM((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)))) == 13 END
-BEGIN BOOST_PP_VARIADIC_ELEM(39,BOOST_PP_ARRAY_ENUM(ARRAY_VERY_LARGE)) == 39 END
-BEGIN BOOST_PP_VARIADIC_ELEM(24,BOOST_PP_ARRAY_ENUM((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 24 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM((5, (0, 1, 2, 3, 4)))) == 5 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM(ARRAY_LARGE)) == 33 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM(ARRAY_VERY_LARGE)) == 64 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 64 END
-
-# endif
-
-// to_list
-
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST(ARRAY), 1) == 1 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST((5, (0, 1, 2, 3, 4))), 4) == 4 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))), 26) == 26 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST(ARRAY_VERY_LARGE), 60) == 60 END
-
-// to_seq
-
-BEGIN BOOST_PP_SEQ_ELEM(0, BOOST_PP_ARRAY_TO_SEQ(ARRAY)) == 0 END
-BEGIN BOOST_PP_SEQ_ELEM(3, BOOST_PP_ARRAY_TO_SEQ((5, (0, 1, 2, 3, 4)))) == 3 END
-BEGIN BOOST_PP_SEQ_ELEM(17, BOOST_PP_ARRAY_TO_SEQ(ARRAY_LARGE)) == 17 END
-BEGIN BOOST_PP_SEQ_ELEM(42, BOOST_PP_ARRAY_TO_SEQ((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 42 END
-
-// to_tuple
-
-# if BOOST_PP_VARIADICS
-
-BEGIN BOOST_PP_TUPLE_ELEM(2, BOOST_PP_ARRAY_TO_TUPLE(ARRAY)) == 2 END
-BEGIN BOOST_PP_TUPLE_ELEM(1, BOOST_PP_ARRAY_TO_TUPLE((5, (0, 1, 2, 3, 4)))) == 1 END
-BEGIN BOOST_PP_TUPLE_ELEM(26, BOOST_PP_ARRAY_TO_TUPLE(ARRAY_LARGE)) == 26 END
-BEGIN BOOST_PP_TUPLE_ELEM(37, BOOST_PP_ARRAY_TO_TUPLE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 37 END
-
-# else
-
-BEGIN BOOST_PP_TUPLE_ELEM(3, 2, BOOST_PP_ARRAY_TO_TUPLE(ARRAY)) == 2 END
-BEGIN BOOST_PP_TUPLE_ELEM(5, 1, BOOST_PP_ARRAY_TO_TUPLE((5, (0, 1, 2, 3, 4)))) == 1 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 26, BOOST_PP_ARRAY_TO_TUPLE(ARRAY_LARGE)) == 26 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 37, BOOST_PP_ARRAY_TO_TUPLE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 37 END
-
-# endif
+# include <libs/preprocessor/test/array.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/array.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/array.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/array.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,83 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/array.hpp>
-# include <libs/preprocessor/test/test.h>
-# include <boost/preprocessor/list/at.hpp>
-# include <boost/preprocessor/seq/elem.hpp>
-# include <boost/preprocessor/tuple/elem.hpp>
-# if BOOST_PP_VARIADICS
-# include <boost/preprocessor/variadic/size.hpp>
-# include <boost/preprocessor/variadic/elem.hpp>
-# endif
-
-# define ARRAY (3, (0, 1, 2))
-# define ARRAY_LARGE (33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))
-# define ARRAY_VERY_LARGE (64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))
-
-// element access
-
-BEGIN BOOST_PP_ARRAY_ELEM(1, ARRAY) == 1 END
-BEGIN BOOST_PP_ARRAY_ELEM(2, (5, (0, 1, 2, 3, 4))) == 2 END
-BEGIN BOOST_PP_ARRAY_ELEM(28, ARRAY_LARGE) == 28 END
-BEGIN BOOST_PP_ARRAY_ELEM(17, (33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))) == 17 END
-BEGIN BOOST_PP_ARRAY_ELEM(42, ARRAY_VERY_LARGE) == 42 END
-BEGIN BOOST_PP_ARRAY_ELEM(62, (64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))) == 62 END
-
-// size
-
-BEGIN BOOST_PP_ARRAY_SIZE(ARRAY) == 3 END
-BEGIN BOOST_PP_ARRAY_SIZE((5, (0, 1, 2, 3, 4))) == 5 END
-BEGIN BOOST_PP_ARRAY_SIZE(ARRAY_LARGE) == 33 END
-BEGIN BOOST_PP_ARRAY_SIZE((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))) == 33 END
-BEGIN BOOST_PP_ARRAY_SIZE(ARRAY_VERY_LARGE) == 64 END
-BEGIN BOOST_PP_ARRAY_SIZE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))) == 64 END
-
-// enum
-
-# if BOOST_PP_VARIADICS
-
-BEGIN BOOST_PP_VARIADIC_ELEM(2,BOOST_PP_ARRAY_ENUM(ARRAY)) == 2 END
-BEGIN BOOST_PP_VARIADIC_ELEM(3,BOOST_PP_ARRAY_ENUM((5, (0, 1, 2, 3, 4)))) == 3 END
-BEGIN BOOST_PP_VARIADIC_ELEM(31,BOOST_PP_ARRAY_ENUM(ARRAY_LARGE)) == 31 END
-BEGIN BOOST_PP_VARIADIC_ELEM(13,BOOST_PP_ARRAY_ENUM((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)))) == 13 END
-BEGIN BOOST_PP_VARIADIC_ELEM(39,BOOST_PP_ARRAY_ENUM(ARRAY_VERY_LARGE)) == 39 END
-BEGIN BOOST_PP_VARIADIC_ELEM(24,BOOST_PP_ARRAY_ENUM((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 24 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM((5, (0, 1, 2, 3, 4)))) == 5 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM(ARRAY_LARGE)) == 33 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM(ARRAY_VERY_LARGE)) == 64 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 64 END
-
-# endif
-
-// to_list
-
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST(ARRAY), 1) == 1 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST((5, (0, 1, 2, 3, 4))), 4) == 4 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))), 26) == 26 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST(ARRAY_VERY_LARGE), 60) == 60 END
-
-// to_seq
-
-BEGIN BOOST_PP_SEQ_ELEM(0, BOOST_PP_ARRAY_TO_SEQ(ARRAY)) == 0 END
-BEGIN BOOST_PP_SEQ_ELEM(3, BOOST_PP_ARRAY_TO_SEQ((5, (0, 1, 2, 3, 4)))) == 3 END
-BEGIN BOOST_PP_SEQ_ELEM(17, BOOST_PP_ARRAY_TO_SEQ(ARRAY_LARGE)) == 17 END
-BEGIN BOOST_PP_SEQ_ELEM(42, BOOST_PP_ARRAY_TO_SEQ((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 42 END
-
-// to_tuple
-
-# if BOOST_PP_VARIADICS
-
-BEGIN BOOST_PP_TUPLE_ELEM(2, BOOST_PP_ARRAY_TO_TUPLE(ARRAY)) == 2 END
-BEGIN BOOST_PP_TUPLE_ELEM(1, BOOST_PP_ARRAY_TO_TUPLE((5, (0, 1, 2, 3, 4)))) == 1 END
-BEGIN BOOST_PP_TUPLE_ELEM(26, BOOST_PP_ARRAY_TO_TUPLE(ARRAY_LARGE)) == 26 END
-BEGIN BOOST_PP_TUPLE_ELEM(37, BOOST_PP_ARRAY_TO_TUPLE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 37 END
-
-# else
-
-BEGIN BOOST_PP_TUPLE_ELEM(3, 2, BOOST_PP_ARRAY_TO_TUPLE(ARRAY)) == 2 END
-BEGIN BOOST_PP_TUPLE_ELEM(5, 1, BOOST_PP_ARRAY_TO_TUPLE((5, (0, 1, 2, 3, 4)))) == 1 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 26, BOOST_PP_ARRAY_TO_TUPLE(ARRAY_LARGE)) == 26 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 37, BOOST_PP_ARRAY_TO_TUPLE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 37 END
-
-# endif
+# include <libs/preprocessor/test/array.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/array.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/array.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,93 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* Revised by Edward Diener (2011) */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/array.hpp>
+# include <libs/preprocessor/test/test.h>
+# include <boost/preprocessor/list/at.hpp>
+# include <boost/preprocessor/seq/elem.hpp>
+# include <boost/preprocessor/tuple/elem.hpp>
+# if BOOST_PP_VARIADICS
+# include <boost/preprocessor/variadic/size.hpp>
+# include <boost/preprocessor/variadic/elem.hpp>
+# endif
+
+# define ARRAY (3, (0, 1, 2))
+# define ARRAY_LARGE (33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))
+# define ARRAY_VERY_LARGE (64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))
+
+/* element access */
+
+BEGIN BOOST_PP_ARRAY_ELEM(1, ARRAY) == 1 END
+BEGIN BOOST_PP_ARRAY_ELEM(2, (5, (0, 1, 2, 3, 4))) == 2 END
+BEGIN BOOST_PP_ARRAY_ELEM(28, ARRAY_LARGE) == 28 END
+BEGIN BOOST_PP_ARRAY_ELEM(17, (33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))) == 17 END
+BEGIN BOOST_PP_ARRAY_ELEM(42, ARRAY_VERY_LARGE) == 42 END
+BEGIN BOOST_PP_ARRAY_ELEM(62, (64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))) == 62 END
+
+/* size */
+
+BEGIN BOOST_PP_ARRAY_SIZE(ARRAY) == 3 END
+BEGIN BOOST_PP_ARRAY_SIZE((5, (0, 1, 2, 3, 4))) == 5 END
+BEGIN BOOST_PP_ARRAY_SIZE(ARRAY_LARGE) == 33 END
+BEGIN BOOST_PP_ARRAY_SIZE((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))) == 33 END
+BEGIN BOOST_PP_ARRAY_SIZE(ARRAY_VERY_LARGE) == 64 END
+BEGIN BOOST_PP_ARRAY_SIZE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63))) == 64 END
+
+/* enum */
+
+# if BOOST_PP_VARIADICS
+
+BEGIN BOOST_PP_VARIADIC_ELEM(2,BOOST_PP_ARRAY_ENUM(ARRAY)) == 2 END
+BEGIN BOOST_PP_VARIADIC_ELEM(3,BOOST_PP_ARRAY_ENUM((5, (0, 1, 2, 3, 4)))) == 3 END
+BEGIN BOOST_PP_VARIADIC_ELEM(31,BOOST_PP_ARRAY_ENUM(ARRAY_LARGE)) == 31 END
+BEGIN BOOST_PP_VARIADIC_ELEM(13,BOOST_PP_ARRAY_ENUM((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)))) == 13 END
+BEGIN BOOST_PP_VARIADIC_ELEM(39,BOOST_PP_ARRAY_ENUM(ARRAY_VERY_LARGE)) == 39 END
+BEGIN BOOST_PP_VARIADIC_ELEM(24,BOOST_PP_ARRAY_ENUM((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 24 END
+BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM((5, (0, 1, 2, 3, 4)))) == 5 END
+BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM(ARRAY_LARGE)) == 33 END
+BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM(ARRAY_VERY_LARGE)) == 64 END
+BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_ARRAY_ENUM((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 64 END
+
+# endif
+
+/* to_list */
+
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST(ARRAY), 1) == 1 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST((5, (0, 1, 2, 3, 4))), 4) == 4 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST((33, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))), 26) == 26 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_ARRAY_TO_LIST(ARRAY_VERY_LARGE), 60) == 60 END
+
+/* to_seq */
+
+BEGIN BOOST_PP_SEQ_ELEM(0, BOOST_PP_ARRAY_TO_SEQ(ARRAY)) == 0 END
+BEGIN BOOST_PP_SEQ_ELEM(3, BOOST_PP_ARRAY_TO_SEQ((5, (0, 1, 2, 3, 4)))) == 3 END
+BEGIN BOOST_PP_SEQ_ELEM(17, BOOST_PP_ARRAY_TO_SEQ(ARRAY_LARGE)) == 17 END
+BEGIN BOOST_PP_SEQ_ELEM(42, BOOST_PP_ARRAY_TO_SEQ((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 42 END
+
+/* to_tuple */
+
+# if BOOST_PP_VARIADICS
+
+BEGIN BOOST_PP_TUPLE_ELEM(2, BOOST_PP_ARRAY_TO_TUPLE(ARRAY)) == 2 END
+BEGIN BOOST_PP_TUPLE_ELEM(1, BOOST_PP_ARRAY_TO_TUPLE((5, (0, 1, 2, 3, 4)))) == 1 END
+BEGIN BOOST_PP_TUPLE_ELEM(26, BOOST_PP_ARRAY_TO_TUPLE(ARRAY_LARGE)) == 26 END
+BEGIN BOOST_PP_TUPLE_ELEM(37, BOOST_PP_ARRAY_TO_TUPLE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 37 END
+
+# else
+
+BEGIN BOOST_PP_TUPLE_ELEM(3, 2, BOOST_PP_ARRAY_TO_TUPLE(ARRAY)) == 2 END
+BEGIN BOOST_PP_TUPLE_ELEM(5, 1, BOOST_PP_ARRAY_TO_TUPLE((5, (0, 1, 2, 3, 4)))) == 1 END
+BEGIN BOOST_PP_TUPLE_ELEM(33, 26, BOOST_PP_ARRAY_TO_TUPLE(ARRAY_LARGE)) == 26 END
+BEGIN BOOST_PP_TUPLE_ELEM(64, 37, BOOST_PP_ARRAY_TO_TUPLE((64, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)))) == 37 END
+
+# endif
Modified: branches/pplib/v2/libs/preprocessor/test/comparison.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/comparison.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/comparison.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,37 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/comparison.hpp>
-# include <libs/preprocessor/test/test.h>
-
-/* equality */
-
-BEGIN BOOST_PP_EQUAL(2, 0) == 0 END
-BEGIN BOOST_PP_EQUAL(2, 2) == 1 END
-
-/* inequality */
-
-BEGIN BOOST_PP_NOT_EQUAL(2, 0) == 1 END
-BEGIN BOOST_PP_NOT_EQUAL(2, 2) == 0 END
-
-/* less */
-
-BEGIN BOOST_PP_LESS(2, 1) == 0 END
-BEGIN BOOST_PP_LESS(1, 2) == 1 END
-
-/* less_equal */
-
-BEGIN BOOST_PP_LESS_EQUAL(2, 1) == 0 END
-BEGIN BOOST_PP_LESS_EQUAL(1, 2) == 1 END
-BEGIN BOOST_PP_LESS_EQUAL(2, 2) == 1 END
-
-/* greater */
-
-BEGIN BOOST_PP_GREATER(2, 1) == 1 END
-BEGIN BOOST_PP_GREATER(1, 2) == 0 END
-
-/* greater_equal */
-
-BEGIN BOOST_PP_GREATER_EQUAL(2, 1) == 1 END
-BEGIN BOOST_PP_GREATER_EQUAL(1, 2) == 0 END
-BEGIN BOOST_PP_GREATER_EQUAL(2, 2) == 1 END
+# include <libs/preprocessor/test/comparison.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/comparison.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/comparison.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/comparison.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,37 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/comparison.hpp>
-# include <libs/preprocessor/test/test.h>
-
-// equality
-
-BEGIN BOOST_PP_EQUAL(2, 0) == 0 END
-BEGIN BOOST_PP_EQUAL(2, 2) == 1 END
-
-// inequality
-
-BEGIN BOOST_PP_NOT_EQUAL(2, 0) == 1 END
-BEGIN BOOST_PP_NOT_EQUAL(2, 2) == 0 END
-
-// less
-
-BEGIN BOOST_PP_LESS(2, 1) == 0 END
-BEGIN BOOST_PP_LESS(1, 2) == 1 END
-
-// less_equal
-
-BEGIN BOOST_PP_LESS_EQUAL(2, 1) == 0 END
-BEGIN BOOST_PP_LESS_EQUAL(1, 2) == 1 END
-BEGIN BOOST_PP_LESS_EQUAL(2, 2) == 1 END
-
-// greater
-
-BEGIN BOOST_PP_GREATER(2, 1) == 1 END
-BEGIN BOOST_PP_GREATER(1, 2) == 0 END
-
-// greater_equal
-
-BEGIN BOOST_PP_GREATER_EQUAL(2, 1) == 1 END
-BEGIN BOOST_PP_GREATER_EQUAL(1, 2) == 0 END
-BEGIN BOOST_PP_GREATER_EQUAL(2, 2) == 1 END
+# include <libs/preprocessor/test/comparison.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/comparison.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/comparison.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,45 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/comparison.hpp>
+# include <libs/preprocessor/test/test.h>
+
+/* equality */
+
+BEGIN BOOST_PP_EQUAL(2, 0) == 0 END
+BEGIN BOOST_PP_EQUAL(2, 2) == 1 END
+
+/* inequality */
+
+BEGIN BOOST_PP_NOT_EQUAL(2, 0) == 1 END
+BEGIN BOOST_PP_NOT_EQUAL(2, 2) == 0 END
+
+/* less */
+
+BEGIN BOOST_PP_LESS(2, 1) == 0 END
+BEGIN BOOST_PP_LESS(1, 2) == 1 END
+
+/* less_equal */
+
+BEGIN BOOST_PP_LESS_EQUAL(2, 1) == 0 END
+BEGIN BOOST_PP_LESS_EQUAL(1, 2) == 1 END
+BEGIN BOOST_PP_LESS_EQUAL(2, 2) == 1 END
+
+/* greater */
+
+BEGIN BOOST_PP_GREATER(2, 1) == 1 END
+BEGIN BOOST_PP_GREATER(1, 2) == 0 END
+
+/* greater_equal */
+
+BEGIN BOOST_PP_GREATER_EQUAL(2, 1) == 1 END
+BEGIN BOOST_PP_GREATER_EQUAL(1, 2) == 0 END
+BEGIN BOOST_PP_GREATER_EQUAL(2, 2) == 1 END
Modified: branches/pplib/v2/libs/preprocessor/test/control.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/control.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/control.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,32 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/arithmetic/add.hpp>
-# include <boost/preprocessor/arithmetic/dec.hpp>
-# include <boost/preprocessor/control.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# define TR(x) 1
-
-BEGIN BOOST_PP_EXPR_IIF(0, TR)(0) == 0 END
-BEGIN BOOST_PP_EXPR_IIF(1, TR)(0) == 1 END
-
-BEGIN BOOST_PP_EXPR_IF(3, TR)(0) == 1 END
-BEGIN BOOST_PP_EXPR_IF(0, TR)(0) == 0 END
-
-BEGIN BOOST_PP_IIF(0, 1, 0) == 0 END
-BEGIN BOOST_PP_IIF(1, 1, 0) == 1 END
-
-BEGIN BOOST_PP_IF(0, 1, 0) == 0 END
-BEGIN BOOST_PP_IF(9, 1, 0) == 1 END
-
-# define PRED(d, state) state
-# define OP_1(d, state) BOOST_PP_DEC(state)
-
-BEGIN BOOST_PP_WHILE(PRED, OP_1, 50) == 0 END
-
-# define OP_2(d, state) BOOST_PP_DEC(BOOST_PP_ADD(BOOST_PP_WHILE(PRED, OP_1, state), state))
-# define OP_3(d, state) BOOST_PP_DEC(BOOST_PP_ADD_D(d, BOOST_PP_WHILE_ ## d(PRED, OP_1, state), state))
-
-BEGIN BOOST_PP_WHILE(PRED, OP_2, 10) == 0 END
-BEGIN BOOST_PP_WHILE(PRED, OP_3, 10) == 0 END
+# include <libs/preprocessor/test/control.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/control.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/control.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/control.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,32 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/arithmetic/add.hpp>
-# include <boost/preprocessor/arithmetic/dec.hpp>
-# include <boost/preprocessor/control.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# define TR(x) 1
-
-BEGIN BOOST_PP_EXPR_IIF(0, TR)(0) == 0 END
-BEGIN BOOST_PP_EXPR_IIF(1, TR)(0) == 1 END
-
-BEGIN BOOST_PP_EXPR_IF(3, TR)(0) == 1 END
-BEGIN BOOST_PP_EXPR_IF(0, TR)(0) == 0 END
-
-BEGIN BOOST_PP_IIF(0, 1, 0) == 0 END
-BEGIN BOOST_PP_IIF(1, 1, 0) == 1 END
-
-BEGIN BOOST_PP_IF(0, 1, 0) == 0 END
-BEGIN BOOST_PP_IF(9, 1, 0) == 1 END
-
-# define PRED(d, state) state
-# define OP_1(d, state) BOOST_PP_DEC(state)
-
-BEGIN BOOST_PP_WHILE(PRED, OP_1, 50) == 0 END
-
-# define OP_2(d, state) BOOST_PP_DEC(BOOST_PP_ADD(BOOST_PP_WHILE(PRED, OP_1, state), state))
-# define OP_3(d, state) BOOST_PP_DEC(BOOST_PP_ADD_D(d, BOOST_PP_WHILE_ ## d(PRED, OP_1, state), state))
-
-BEGIN BOOST_PP_WHILE(PRED, OP_2, 10) == 0 END
-BEGIN BOOST_PP_WHILE(PRED, OP_3, 10) == 0 END
+# include <libs/preprocessor/test/control.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/control.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/control.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,40 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/arithmetic/add.hpp>
+# include <boost/preprocessor/arithmetic/dec.hpp>
+# include <boost/preprocessor/control.hpp>
+# include <libs/preprocessor/test/test.h>
+
+# define TR(x) 1
+
+BEGIN BOOST_PP_EXPR_IIF(0, TR)(0) == 0 END
+BEGIN BOOST_PP_EXPR_IIF(1, TR)(0) == 1 END
+
+BEGIN BOOST_PP_EXPR_IF(3, TR)(0) == 1 END
+BEGIN BOOST_PP_EXPR_IF(0, TR)(0) == 0 END
+
+BEGIN BOOST_PP_IIF(0, 1, 0) == 0 END
+BEGIN BOOST_PP_IIF(1, 1, 0) == 1 END
+
+BEGIN BOOST_PP_IF(0, 1, 0) == 0 END
+BEGIN BOOST_PP_IF(9, 1, 0) == 1 END
+
+# define PRED(d, state) state
+# define OP_1(d, state) BOOST_PP_DEC(state)
+
+BEGIN BOOST_PP_WHILE(PRED, OP_1, 50) == 0 END
+
+# define OP_2(d, state) BOOST_PP_DEC(BOOST_PP_ADD(BOOST_PP_WHILE(PRED, OP_1, state), state))
+# define OP_3(d, state) BOOST_PP_DEC(BOOST_PP_ADD_D(d, BOOST_PP_WHILE_ ## d(PRED, OP_1, state), state))
+
+BEGIN BOOST_PP_WHILE(PRED, OP_2, 10) == 0 END
+BEGIN BOOST_PP_WHILE(PRED, OP_3, 10) == 0 END
Modified: branches/pplib/v2/libs/preprocessor/test/debug.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/debug.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/debug.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,13 +9,6 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/debug.hpp>
-# include <libs/preprocessor/test/test.h>
-
-BEGIN sizeof(BOOST_PP_ASSERT_MSG(0, "text") "") / sizeof(char) != 1 END
-BEGIN sizeof(BOOST_PP_ASSERT_MSG(1, "text") "") / sizeof(char) == 1 END
-
-BOOST_PP_ASSERT(10)
-
-# line BOOST_PP_LINE(100, __FILE__)
-BEGIN __LINE__ == 100 END
+# /* Revised by Edward Diener (2011) */
+#
+# include <libs/preprocessor/test/debug.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/debug.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/debug.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/debug.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,13 +9,6 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/debug.hpp>
-# include <libs/preprocessor/test/test.h>
-
-BEGIN sizeof(BOOST_PP_ASSERT_MSG(0, "text") "") / sizeof(char) != 1 END
-BEGIN sizeof(BOOST_PP_ASSERT_MSG(1, "text") "") / sizeof(char) == 1 END
-
-BOOST_PP_ASSERT(10)
-
-# line BOOST_PP_LINE(100, __FILE__)
-BEGIN __LINE__ == 100 END
+# /* Revised by Edward Diener (2011) */
+#
+# include <libs/preprocessor/test/debug.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/debug.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/debug.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,30 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# /* Revised by Edward Diener (2011) */
+#
+# include <boost/preprocessor/debug.hpp>
+# include <libs/preprocessor/test/test.h>
+
+BEGIN sizeof(BOOST_PP_ASSERT_MSG(0, "text") "") / sizeof(char) != 1 END
+BEGIN sizeof(BOOST_PP_ASSERT_MSG(1, "text") "") / sizeof(char) == 1 END
+
+BOOST_PP_ASSERT(10)
+
+# line BOOST_PP_LINE(100, __FILE__)
+BEGIN __LINE__ == 100 END
+
+# if BOOST_PP_VARIADICS
+
+BOOST_PP_ASSERT_IS_TUPLE((x,3,e,2))
+BOOST_PP_ASSERT_IS_ARRAY((4,(x,3,e,2)))
+
+# endif
\ No newline at end of file
Added: branches/pplib/v2/libs/preprocessor/test/debug_fail.c
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/debug_fail.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,12 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Edward Diener 2011.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <libs/preprocessor/test/debug_fail.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/debug_fail.cpp
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/debug_fail.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,12 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Edward Diener 2011.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <libs/preprocessor/test/debug_fail.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/debug_fail.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/debug_fail.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,20 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Edward Diener 2011.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/debug.hpp>
+# include <libs/preprocessor/test/test.h>
+
+# if BOOST_PP_VARIADICS
+
+BOOST_PP_ASSERT_IS_TUPLE((x,3,e,2)ty)
+BOOST_PP_ASSERT_IS_ARRAY((y,(x,3,e,2)))
+
+# endif
Modified: branches/pplib/v2/libs/preprocessor/test/facilities.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/facilities.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/facilities.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,49 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/cat.hpp>
-# include <boost/preprocessor/facilities.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# if BOOST_PP_VARIADICS
-
-# define TUPLE (0, 1, 2, 3, 4, 5)
-# define TUPLE_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
-# define TUPLE_VERY_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)
-
-#endif
-
-BEGIN BOOST_PP_APPLY(BOOST_PP_NIL) 0 == 0 END
-BEGIN BOOST_PP_APPLY((0)) == 0 END
-
-BEGIN BOOST_PP_APPLY((BOOST_PP_EMPTY))() 0 == 0 END
-
-# define MACRO(x, y, z) 1
-# define ARGS (1, 2, 3)
-
-BEGIN BOOST_PP_EXPAND(MACRO ARGS) == 1 END
-
-BEGIN BOOST_PP_IDENTITY(1)() == 1 END
-
-BEGIN BOOST_PP_CAT(BOOST_PP_INTERCEPT, 2) 1 == 1 END
-
-# if BOOST_PP_VARIADICS
-
-BEGIN BOOST_PP_IS_TUPLE(TUPLE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE((4,8,ty,2)) == 1 END
-BEGIN BOOST_PP_IS_TUPLE(TUPLE_LARGE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE(TUPLE_VERY_LARGE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE(A green test) == 0 END
-BEGIN BOOST_PP_IS_TUPLE(TUPLE_VERY_LARGE A green test) == 0 END
-BEGIN BOOST_PP_IS_TUPLE((4,8,ty,2)yz) == 0 END
-
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_LARGE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_VERY_LARGE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN((4,8,ty,2)) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(A green test) == 0 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_VERY_LARGE A green test) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN((4,8,ty,2)yz) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(A green test(3.x.t)) == 0 END
-
-#endif
+# include <libs/preprocessor/test/facilities.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/facilities.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/facilities.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/facilities.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,49 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/cat.hpp>
-# include <boost/preprocessor/facilities.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# if BOOST_PP_VARIADICS
-
-# define TUPLE (0, 1, 2, 3, 4, 5)
-# define TUPLE_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
-# define TUPLE_VERY_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)
-
-#endif
-
-BEGIN BOOST_PP_APPLY(BOOST_PP_NIL) 0 == 0 END
-BEGIN BOOST_PP_APPLY((0)) == 0 END
-
-BEGIN BOOST_PP_APPLY((BOOST_PP_EMPTY))() 0 == 0 END
-
-# define MACRO(x, y, z) 1
-# define ARGS (1, 2, 3)
-
-BEGIN BOOST_PP_EXPAND(MACRO ARGS) == 1 END
-
-BEGIN BOOST_PP_IDENTITY(1)() == 1 END
-
-BEGIN BOOST_PP_CAT(BOOST_PP_INTERCEPT, 2) 1 == 1 END
-
-# if BOOST_PP_VARIADICS
-
-BEGIN BOOST_PP_IS_TUPLE(TUPLE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE(TUPLE_LARGE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE(TUPLE_VERY_LARGE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE((4,8,ty,2)) == 1 END
-BEGIN BOOST_PP_IS_TUPLE(A green test) == 0 END
-BEGIN BOOST_PP_IS_TUPLE(TUPLE_VERY_LARGE A green test) == 0 END
-BEGIN BOOST_PP_IS_TUPLE((4,8,ty,2)yz) == 0 END
-
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_LARGE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_VERY_LARGE) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN((4,8,ty,2)) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(A green test) == 0 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_VERY_LARGE A green test) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN((4,8,ty,2)yz) == 1 END
-BEGIN BOOST_PP_IS_TUPLE_BEGIN(A green test(3.x.t)) == 0 END
-
-#endif
+# include <libs/preprocessor/test/facilities.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/facilities.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/facilities.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,51 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* Revised by Edward Diener (2011) */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/cat.hpp>
+# include <boost/preprocessor/facilities.hpp>
+# include <libs/preprocessor/test/test.h>
+
+# if BOOST_PP_VARIADICS
+
+# define TUPLE (0, 1, 2, 3, 4, 5)
+# define TUPLE_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
+# define TUPLE_VERY_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)
+
+#endif
+
+BEGIN BOOST_PP_APPLY(BOOST_PP_NIL) 0 == 0 END
+BEGIN BOOST_PP_APPLY((0)) == 0 END
+
+BEGIN BOOST_PP_APPLY((BOOST_PP_EMPTY))() 0 == 0 END
+
+# define MACRO(x, y, z) 1
+# define ARGS (1, 2, 3)
+
+BEGIN BOOST_PP_EXPAND(MACRO ARGS) == 1 END
+
+BEGIN BOOST_PP_IDENTITY(1)() == 1 END
+
+BEGIN BOOST_PP_CAT(BOOST_PP_INTERCEPT, 2) 1 == 1 END
+
+# if BOOST_PP_VARIADICS
+
+BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE) == 1 END
+BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_LARGE) == 1 END
+BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_VERY_LARGE) == 1 END
+BEGIN BOOST_PP_IS_TUPLE_BEGIN((4,8,ty,2)) == 1 END
+BEGIN BOOST_PP_IS_TUPLE_BEGIN(A green test) == 0 END
+BEGIN BOOST_PP_IS_TUPLE_BEGIN(TUPLE_VERY_LARGE A green test) == 1 END
+BEGIN BOOST_PP_IS_TUPLE_BEGIN((4,8,ty,2)yz) == 1 END
+BEGIN BOOST_PP_IS_TUPLE_BEGIN(A green test(3.x.t)) == 0 END
+
+#endif
Modified: branches/pplib/v2/libs/preprocessor/test/list.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/list.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/list.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,51 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/arithmetic/add.hpp>
-# include <boost/preprocessor/arithmetic/sub.hpp>
-# include <boost/preprocessor/comparison/less.hpp>
-# include <boost/preprocessor/list.hpp>
-# include <boost/preprocessor/tuple/elem.hpp>
-# include <boost/preprocessor/array/elem.hpp>
-# include <boost/preprocessor/seq/elem.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# define LIST (4, (1, (5, (2, BOOST_PP_NIL))))
-
-# define REVERSAL(d, x, y) BOOST_PP_SUB_D(d, y, x)
-
-BEGIN BOOST_PP_LIST_FOLD_LEFT(BOOST_PP_SUB_D, 22, LIST) == 10 END
-BEGIN BOOST_PP_LIST_FOLD_RIGHT(BOOST_PP_ADD_D, 0, LIST) == 12 END
-BEGIN BOOST_PP_LIST_FOLD_RIGHT(REVERSAL, 0, LIST) == 4 END
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_REVERSE(LIST)) == 2514 END
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_REST_N(2, LIST)) == 52 END
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FIRST_N(2, LIST)) == 41 END
-
-BEGIN BOOST_PP_LIST_AT(LIST, 2) == 5 END
-BEGIN BOOST_PP_LIST_SIZE(LIST) == 4 END
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_TRANSFORM(BOOST_PP_ADD_D, 2, LIST)) == 6374 END
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_APPEND(BOOST_PP_LIST_REST(LIST), LIST)) == 1524152 END
-
-# define F1(r, state, x) + x + state
-BEGIN BOOST_PP_LIST_FOR_EACH(F1, 1, LIST) == 16 END
-
-BEGIN BOOST_PP_TUPLE_ELEM(4, 3, BOOST_PP_LIST_TO_TUPLE(LIST)) == 2 END
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FILTER(BOOST_PP_LESS_D, 3, LIST)) == 45 END
-
-# define F2(r, x) + BOOST_PP_TUPLE_ELEM(2, 0, x) + 2 - BOOST_PP_TUPLE_ELEM(2, 1, x)
-BEGIN BOOST_PP_LIST_FOR_EACH_PRODUCT(F2, 2, ( (1, (0, BOOST_PP_NIL)), (2, (3, BOOST_PP_NIL)) )) == 0 END
-
-# define L1 (0, (x, BOOST_PP_NIL))
-# define L2 (a, (1, (b, (2, BOOST_PP_NIL))))
-# define L3 (c, (3, (d, BOOST_PP_NIL)))
-
-# define LL (L1, (L2, (L3, BOOST_PP_NIL)))
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FOLD_LEFT(BOOST_PP_LIST_APPEND_D, BOOST_PP_NIL, LL)) == 0x0a1b2c3d END
-
-BEGIN BOOST_PP_ARRAY_ELEM(2, BOOST_PP_LIST_TO_ARRAY(LIST)) == 5 END
-BEGIN BOOST_PP_SEQ_ELEM(3, BOOST_PP_LIST_TO_SEQ(LIST)) == 2 END
+# include <libs/preprocessor/test/list.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/list.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/list.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/list.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,51 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/arithmetic/add.hpp>
-# include <boost/preprocessor/arithmetic/sub.hpp>
-# include <boost/preprocessor/comparison/less.hpp>
-# include <boost/preprocessor/list.hpp>
-# include <boost/preprocessor/tuple/elem.hpp>
-# include <boost/preprocessor/array/elem.hpp>
-# include <boost/preprocessor/seq/elem.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# define LIST (4, (1, (5, (2, BOOST_PP_NIL))))
-
-# define REVERSAL(d, x, y) BOOST_PP_SUB_D(d, y, x)
-
-BEGIN BOOST_PP_LIST_FOLD_LEFT(BOOST_PP_SUB_D, 22, LIST) == 10 END
-BEGIN BOOST_PP_LIST_FOLD_RIGHT(BOOST_PP_ADD_D, 0, LIST) == 12 END
-BEGIN BOOST_PP_LIST_FOLD_RIGHT(REVERSAL, 0, LIST) == 4 END
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_REVERSE(LIST)) == 2514 END
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_REST_N(2, LIST)) == 52 END
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FIRST_N(2, LIST)) == 41 END
-
-BEGIN BOOST_PP_LIST_AT(LIST, 2) == 5 END
-BEGIN BOOST_PP_LIST_SIZE(LIST) == 4 END
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_TRANSFORM(BOOST_PP_ADD_D, 2, LIST)) == 6374 END
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_APPEND(BOOST_PP_LIST_REST(LIST), LIST)) == 1524152 END
-
-# define F1(r, state, x) + x + state
-BEGIN BOOST_PP_LIST_FOR_EACH(F1, 1, LIST) == 16 END
-
-BEGIN BOOST_PP_TUPLE_ELEM(4, 3, BOOST_PP_LIST_TO_TUPLE(LIST)) == 2 END
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FILTER(BOOST_PP_LESS_D, 3, LIST)) == 45 END
-
-# define F2(r, x) + BOOST_PP_TUPLE_ELEM(2, 0, x) + 2 - BOOST_PP_TUPLE_ELEM(2, 1, x)
-BEGIN BOOST_PP_LIST_FOR_EACH_PRODUCT(F2, 2, ( (1, (0, BOOST_PP_NIL)), (2, (3, BOOST_PP_NIL)) )) == 0 END
-
-# define L1 (0, (x, BOOST_PP_NIL))
-# define L2 (a, (1, (b, (2, BOOST_PP_NIL))))
-# define L3 (c, (3, (d, BOOST_PP_NIL)))
-
-# define LL (L1, (L2, (L3, BOOST_PP_NIL)))
-
-BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FOLD_LEFT(BOOST_PP_LIST_APPEND_D, BOOST_PP_NIL, LL)) == 0x0a1b2c3d END
-
-BEGIN BOOST_PP_ARRAY_ELEM(2, BOOST_PP_LIST_TO_ARRAY(LIST)) == 5 END
-BEGIN BOOST_PP_SEQ_ELEM(3, BOOST_PP_LIST_TO_SEQ(LIST)) == 2 END
+# include <libs/preprocessor/test/list.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/list.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/list.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,61 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* Revised by Edward Diener (2011) */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/arithmetic/add.hpp>
+# include <boost/preprocessor/arithmetic/sub.hpp>
+# include <boost/preprocessor/comparison/less.hpp>
+# include <boost/preprocessor/list.hpp>
+# include <boost/preprocessor/tuple/elem.hpp>
+# include <boost/preprocessor/array/elem.hpp>
+# include <boost/preprocessor/seq/elem.hpp>
+# include <libs/preprocessor/test/test.h>
+
+# define LIST (4, (1, (5, (2, BOOST_PP_NIL))))
+
+# define REVERSAL(d, x, y) BOOST_PP_SUB_D(d, y, x)
+
+BEGIN BOOST_PP_LIST_FOLD_LEFT(BOOST_PP_SUB_D, 22, LIST) == 10 END
+BEGIN BOOST_PP_LIST_FOLD_RIGHT(BOOST_PP_ADD_D, 0, LIST) == 12 END
+BEGIN BOOST_PP_LIST_FOLD_RIGHT(REVERSAL, 0, LIST) == 4 END
+
+BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_REVERSE(LIST)) == 2514 END
+
+BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_REST_N(2, LIST)) == 52 END
+BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FIRST_N(2, LIST)) == 41 END
+
+BEGIN BOOST_PP_LIST_AT(LIST, 2) == 5 END
+BEGIN BOOST_PP_LIST_SIZE(LIST) == 4 END
+
+BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_TRANSFORM(BOOST_PP_ADD_D, 2, LIST)) == 6374 END
+BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_APPEND(BOOST_PP_LIST_REST(LIST), LIST)) == 1524152 END
+
+# define F1(r, state, x) + x + state
+BEGIN BOOST_PP_LIST_FOR_EACH(F1, 1, LIST) == 16 END
+
+BEGIN BOOST_PP_TUPLE_ELEM(4, 3, BOOST_PP_LIST_TO_TUPLE(LIST)) == 2 END
+
+BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FILTER(BOOST_PP_LESS_D, 3, LIST)) == 45 END
+
+# define F2(r, x) + BOOST_PP_TUPLE_ELEM(2, 0, x) + 2 - BOOST_PP_TUPLE_ELEM(2, 1, x)
+BEGIN BOOST_PP_LIST_FOR_EACH_PRODUCT(F2, 2, ( (1, (0, BOOST_PP_NIL)), (2, (3, BOOST_PP_NIL)) )) == 0 END
+
+# define L1 (0, (x, BOOST_PP_NIL))
+# define L2 (a, (1, (b, (2, BOOST_PP_NIL))))
+# define L3 (c, (3, (d, BOOST_PP_NIL)))
+
+# define LL (L1, (L2, (L3, BOOST_PP_NIL)))
+
+BEGIN BOOST_PP_LIST_CAT(BOOST_PP_LIST_FOLD_LEFT(BOOST_PP_LIST_APPEND_D, BOOST_PP_NIL, LL)) == 0x0a1b2c3d END
+
+BEGIN BOOST_PP_ARRAY_ELEM(2, BOOST_PP_LIST_TO_ARRAY(LIST)) == 5 END
+BEGIN BOOST_PP_SEQ_ELEM(3, BOOST_PP_LIST_TO_SEQ(LIST)) == 2 END
Modified: branches/pplib/v2/libs/preprocessor/test/logical.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/logical.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/logical.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,28 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/logical.hpp>
-# include <libs/preprocessor/test/test.h>
-
-BEGIN BOOST_PP_NOT(0) == 1 END
-BEGIN BOOST_PP_NOT(2) == 0 END
-
-BEGIN BOOST_PP_AND(0, 0) == 0 END
-BEGIN BOOST_PP_AND(0, 3) == 0 END
-BEGIN BOOST_PP_AND(4, 0) == 0 END
-BEGIN BOOST_PP_AND(5, 6) == 1 END
-
-BEGIN BOOST_PP_OR(0, 0) == 0 END
-BEGIN BOOST_PP_OR(0, 7) == 1 END
-BEGIN BOOST_PP_OR(8, 0) == 1 END
-BEGIN BOOST_PP_OR(9, 1) == 1 END
-
-BEGIN BOOST_PP_XOR(0, 0) == 0 END
-BEGIN BOOST_PP_XOR(0, 2) == 1 END
-BEGIN BOOST_PP_XOR(3, 0) == 1 END
-BEGIN BOOST_PP_XOR(4, 5) == 0 END
-
-BEGIN BOOST_PP_NOR(0, 0) == 1 END
-BEGIN BOOST_PP_NOR(0, 6) == 0 END
-BEGIN BOOST_PP_NOR(7, 0) == 0 END
-BEGIN BOOST_PP_NOR(8, 9) == 0 END
+# include <libs/preprocessor/test/logical.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/logical.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/logical.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/logical.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,28 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/logical.hpp>
-# include <libs/preprocessor/test/test.h>
-
-BEGIN BOOST_PP_NOT(0) == 1 END
-BEGIN BOOST_PP_NOT(2) == 0 END
-
-BEGIN BOOST_PP_AND(0, 0) == 0 END
-BEGIN BOOST_PP_AND(0, 3) == 0 END
-BEGIN BOOST_PP_AND(4, 0) == 0 END
-BEGIN BOOST_PP_AND(5, 6) == 1 END
-
-BEGIN BOOST_PP_OR(0, 0) == 0 END
-BEGIN BOOST_PP_OR(0, 7) == 1 END
-BEGIN BOOST_PP_OR(8, 0) == 1 END
-BEGIN BOOST_PP_OR(9, 1) == 1 END
-
-BEGIN BOOST_PP_XOR(0, 0) == 0 END
-BEGIN BOOST_PP_XOR(0, 2) == 1 END
-BEGIN BOOST_PP_XOR(3, 0) == 1 END
-BEGIN BOOST_PP_XOR(4, 5) == 0 END
-
-BEGIN BOOST_PP_NOR(0, 0) == 1 END
-BEGIN BOOST_PP_NOR(0, 6) == 0 END
-BEGIN BOOST_PP_NOR(7, 0) == 0 END
-BEGIN BOOST_PP_NOR(8, 9) == 0 END
+# include <libs/preprocessor/test/logical.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/logical.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/logical.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,36 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/logical.hpp>
+# include <libs/preprocessor/test/test.h>
+
+BEGIN BOOST_PP_NOT(0) == 1 END
+BEGIN BOOST_PP_NOT(2) == 0 END
+
+BEGIN BOOST_PP_AND(0, 0) == 0 END
+BEGIN BOOST_PP_AND(0, 3) == 0 END
+BEGIN BOOST_PP_AND(4, 0) == 0 END
+BEGIN BOOST_PP_AND(5, 6) == 1 END
+
+BEGIN BOOST_PP_OR(0, 0) == 0 END
+BEGIN BOOST_PP_OR(0, 7) == 1 END
+BEGIN BOOST_PP_OR(8, 0) == 1 END
+BEGIN BOOST_PP_OR(9, 1) == 1 END
+
+BEGIN BOOST_PP_XOR(0, 0) == 0 END
+BEGIN BOOST_PP_XOR(0, 2) == 1 END
+BEGIN BOOST_PP_XOR(3, 0) == 1 END
+BEGIN BOOST_PP_XOR(4, 5) == 0 END
+
+BEGIN BOOST_PP_NOR(0, 0) == 1 END
+BEGIN BOOST_PP_NOR(0, 6) == 0 END
+BEGIN BOOST_PP_NOR(7, 0) == 0 END
+BEGIN BOOST_PP_NOR(8, 9) == 0 END
Modified: branches/pplib/v2/libs/preprocessor/test/selection.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/selection.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/selection.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,13 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/selection.hpp>
-# include <libs/preprocessor/test/test.h>
-
-BEGIN BOOST_PP_MAX(2, 2) == 2 END
-BEGIN BOOST_PP_MAX(2, 1) == 2 END
-BEGIN BOOST_PP_MAX(1, 2) == 2 END
-
-BEGIN BOOST_PP_MIN(2, 2) == 2 END
-BEGIN BOOST_PP_MIN(2, 1) == 1 END
-BEGIN BOOST_PP_MIN(1, 2) == 1 END
+# include <libs/preprocessor/test/selection.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/selection.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/selection.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/selection.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,13 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/selection.hpp>
-# include <libs/preprocessor/test/test.h>
-
-BEGIN BOOST_PP_MAX(2, 2) == 2 END
-BEGIN BOOST_PP_MAX(2, 1) == 2 END
-BEGIN BOOST_PP_MAX(1, 2) == 2 END
-
-BEGIN BOOST_PP_MIN(2, 2) == 2 END
-BEGIN BOOST_PP_MIN(2, 1) == 1 END
-BEGIN BOOST_PP_MIN(1, 2) == 1 END
+# include <libs/preprocessor/test/selection.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/selection.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/selection.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,21 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/selection.hpp>
+# include <libs/preprocessor/test/test.h>
+
+BEGIN BOOST_PP_MAX(2, 2) == 2 END
+BEGIN BOOST_PP_MAX(2, 1) == 2 END
+BEGIN BOOST_PP_MAX(1, 2) == 2 END
+
+BEGIN BOOST_PP_MIN(2, 2) == 2 END
+BEGIN BOOST_PP_MIN(2, 1) == 1 END
+BEGIN BOOST_PP_MIN(1, 2) == 1 END
Modified: branches/pplib/v2/libs/preprocessor/test/seq.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/seq.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/seq.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,80 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/arithmetic/add.hpp>
-# include <boost/preprocessor/arithmetic/sub.hpp>
-# include <boost/preprocessor/comparison/less.hpp>
-# include <boost/preprocessor/seq.hpp>
-# include <boost/preprocessor/tuple/elem.hpp>
-# include <boost/preprocessor/list/at.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# define SEQ (4)(1)(5)(2)
-
-# define REVERSAL(s, x, y) BOOST_PP_SUB(y, x)
-# define SUB_S(s, x, y) BOOST_PP_SUB(x, y)
-# define ADD_S(s, x, y) BOOST_PP_ADD(x, y)
-
-BEGIN BOOST_PP_SEQ_FOLD_LEFT(SUB_S, 22, SEQ) == 10 END
-BEGIN BOOST_PP_SEQ_FOLD_RIGHT(ADD_S, 0, SEQ) == 12 END
-BEGIN BOOST_PP_SEQ_FOLD_RIGHT(REVERSAL, 0, SEQ) == 4 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REVERSE(SEQ)) == 2514 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REST_N(2, SEQ)) == 52 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_FIRST_N(2, SEQ)) == 41 END
-
-BEGIN BOOST_PP_SEQ_ELEM(2, SEQ) == 5 END
-BEGIN BOOST_PP_SEQ_SIZE(SEQ) == 4 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TRANSFORM(ADD_S, 2, SEQ)) == 6374 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TAIL(SEQ) SEQ) == 1524152 END
-
-# define F1(r, state, x) + x + state
-BEGIN BOOST_PP_SEQ_FOR_EACH(F1, 1, SEQ) == 16 END
-
-BEGIN BOOST_PP_TUPLE_ELEM(4, 3, BOOST_PP_SEQ_TO_TUPLE(SEQ)) == 2 END
-
-# define LESS_S(s, x, y) BOOST_PP_LESS(x, y)
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_FILTER(LESS_S, 3, SEQ)) == 45 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 0, 3)) == 34152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 2, 3)) == 41352 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 4, 3)) == 41523 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_POP_BACK(SEQ)) == 415 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_POP_FRONT(SEQ)) == 152 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_PUSH_FRONT(SEQ, 3)) == 34152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_PUSH_BACK(SEQ, 3)) == 41523 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 0)) == 152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 2)) == 412 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 3)) == 415 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 0, 3)) == 3152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 1, 3)) == 4352 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 3, 3)) == 4153 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 0, 4)) == 4152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 0, 2)) == 41 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 1, 2)) == 15 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 2, 2)) == 52 END
-
-# define F2(r, x) + BOOST_PP_SEQ_ELEM(0, x) + 2 - BOOST_PP_SEQ_ELEM(1, x)
-
-#define ADD_NIL(x) x(nil)
-
-BEGIN BOOST_PP_SEQ_FOR_EACH_PRODUCT(F2, ((1)(0)) ((2)(3))) == 0 END
-
-# define L1 (0)(x)
-# define L2 (a)(1)(b)(2)
-# define L3 (c)(3)(d)
-
-# define LL (L1)(L2)(L3)
-
-#define SEQ_APPEND(s, state, elem) state elem
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_FOLD_LEFT(SEQ_APPEND, (~), LL))) == 0x0a1b2c3d END
-BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_FOLD_LEFT(SEQ_APPEND, (~), LL))) == 9 END
-
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_SEQ_TO_LIST(SEQ), 2) == 5 END
+# include <libs/preprocessor/test/seq.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/seq.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/seq.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/seq.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,80 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/arithmetic/add.hpp>
-# include <boost/preprocessor/arithmetic/sub.hpp>
-# include <boost/preprocessor/comparison/less.hpp>
-# include <boost/preprocessor/seq.hpp>
-# include <boost/preprocessor/tuple/elem.hpp>
-# include <boost/preprocessor/list/at.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# define SEQ (4)(1)(5)(2)
-
-# define REVERSAL(s, x, y) BOOST_PP_SUB(y, x)
-# define SUB_S(s, x, y) BOOST_PP_SUB(x, y)
-# define ADD_S(s, x, y) BOOST_PP_ADD(x, y)
-
-BEGIN BOOST_PP_SEQ_FOLD_LEFT(SUB_S, 22, SEQ) == 10 END
-BEGIN BOOST_PP_SEQ_FOLD_RIGHT(ADD_S, 0, SEQ) == 12 END
-BEGIN BOOST_PP_SEQ_FOLD_RIGHT(REVERSAL, 0, SEQ) == 4 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REVERSE(SEQ)) == 2514 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REST_N(2, SEQ)) == 52 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_FIRST_N(2, SEQ)) == 41 END
-
-BEGIN BOOST_PP_SEQ_ELEM(2, SEQ) == 5 END
-BEGIN BOOST_PP_SEQ_SIZE(SEQ) == 4 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TRANSFORM(ADD_S, 2, SEQ)) == 6374 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TAIL(SEQ) SEQ) == 1524152 END
-
-# define F1(r, state, x) + x + state
-BEGIN BOOST_PP_SEQ_FOR_EACH(F1, 1, SEQ) == 16 END
-
-BEGIN BOOST_PP_TUPLE_ELEM(4, 3, BOOST_PP_SEQ_TO_TUPLE(SEQ)) == 2 END
-
-# define LESS_S(s, x, y) BOOST_PP_LESS(x, y)
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_FILTER(LESS_S, 3, SEQ)) == 45 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 0, 3)) == 34152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 2, 3)) == 41352 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 4, 3)) == 41523 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_POP_BACK(SEQ)) == 415 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_POP_FRONT(SEQ)) == 152 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_PUSH_FRONT(SEQ, 3)) == 34152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_PUSH_BACK(SEQ, 3)) == 41523 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 0)) == 152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 2)) == 412 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 3)) == 415 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 0, 3)) == 3152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 1, 3)) == 4352 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 3, 3)) == 4153 END
-
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 0, 4)) == 4152 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 0, 2)) == 41 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 1, 2)) == 15 END
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 2, 2)) == 52 END
-
-# define F2(r, x) + BOOST_PP_SEQ_ELEM(0, x) + 2 - BOOST_PP_SEQ_ELEM(1, x)
-
-#define ADD_NIL(x) x(nil)
-
-BEGIN BOOST_PP_SEQ_FOR_EACH_PRODUCT(F2, ((1)(0)) ((2)(3))) == 0 END
-
-# define L1 (0)(x)
-# define L2 (a)(1)(b)(2)
-# define L3 (c)(3)(d)
-
-# define LL (L1)(L2)(L3)
-
-#define SEQ_APPEND(s, state, elem) state elem
-BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_FOLD_LEFT(SEQ_APPEND, (~), LL))) == 0x0a1b2c3d END
-BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_FOLD_LEFT(SEQ_APPEND, (~), LL))) == 9 END
-
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_SEQ_TO_LIST(SEQ), 2) == 5 END
+# include <libs/preprocessor/test/seq.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/seq.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/seq.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,90 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* Revised by Edward Diener (2011) */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/arithmetic/add.hpp>
+# include <boost/preprocessor/arithmetic/sub.hpp>
+# include <boost/preprocessor/comparison/less.hpp>
+# include <boost/preprocessor/seq.hpp>
+# include <boost/preprocessor/tuple/elem.hpp>
+# include <boost/preprocessor/list/at.hpp>
+# include <libs/preprocessor/test/test.h>
+
+# define SEQ (4)(1)(5)(2)
+
+# define REVERSAL(s, x, y) BOOST_PP_SUB(y, x)
+# define SUB_S(s, x, y) BOOST_PP_SUB(x, y)
+# define ADD_S(s, x, y) BOOST_PP_ADD(x, y)
+
+BEGIN BOOST_PP_SEQ_FOLD_LEFT(SUB_S, 22, SEQ) == 10 END
+BEGIN BOOST_PP_SEQ_FOLD_RIGHT(ADD_S, 0, SEQ) == 12 END
+BEGIN BOOST_PP_SEQ_FOLD_RIGHT(REVERSAL, 0, SEQ) == 4 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REVERSE(SEQ)) == 2514 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REST_N(2, SEQ)) == 52 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_FIRST_N(2, SEQ)) == 41 END
+
+BEGIN BOOST_PP_SEQ_ELEM(2, SEQ) == 5 END
+BEGIN BOOST_PP_SEQ_SIZE(SEQ) == 4 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TRANSFORM(ADD_S, 2, SEQ)) == 6374 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TAIL(SEQ) SEQ) == 1524152 END
+
+# define F1(r, state, x) + x + state
+BEGIN BOOST_PP_SEQ_FOR_EACH(F1, 1, SEQ) == 16 END
+
+BEGIN BOOST_PP_TUPLE_ELEM(4, 3, BOOST_PP_SEQ_TO_TUPLE(SEQ)) == 2 END
+
+# define LESS_S(s, x, y) BOOST_PP_LESS(x, y)
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_FILTER(LESS_S, 3, SEQ)) == 45 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 0, 3)) == 34152 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 2, 3)) == 41352 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_INSERT(SEQ, 4, 3)) == 41523 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_POP_BACK(SEQ)) == 415 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_POP_FRONT(SEQ)) == 152 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_PUSH_FRONT(SEQ, 3)) == 34152 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_PUSH_BACK(SEQ, 3)) == 41523 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 0)) == 152 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 2)) == 412 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REMOVE(SEQ, 3)) == 415 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 0, 3)) == 3152 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 1, 3)) == 4352 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_REPLACE(SEQ, 3, 3)) == 4153 END
+
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 0, 4)) == 4152 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 0, 2)) == 41 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 1, 2)) == 15 END
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_SUBSEQ(SEQ, 2, 2)) == 52 END
+
+# define F2(r, x) + BOOST_PP_SEQ_ELEM(0, x) + 2 - BOOST_PP_SEQ_ELEM(1, x)
+
+#define ADD_NIL(x) x(nil)
+
+BEGIN BOOST_PP_SEQ_FOR_EACH_PRODUCT(F2, ((1)(0)) ((2)(3))) == 0 END
+
+# define L1 (0)(x)
+# define L2 (a)(1)(b)(2)
+# define L3 (c)(3)(d)
+
+# define LL (L1)(L2)(L3)
+
+#define SEQ_APPEND(s, state, elem) state elem
+BEGIN BOOST_PP_SEQ_CAT(BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_FOLD_LEFT(SEQ_APPEND, (~), LL))) == 0x0a1b2c3d END
+BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_SEQ_TAIL(BOOST_PP_SEQ_FOLD_LEFT(SEQ_APPEND, (~), LL))) == 9 END
+
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_SEQ_TO_LIST(SEQ), 2) == 5 END
Modified: branches/pplib/v2/libs/preprocessor/test/slot.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/slot.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/slot.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,19 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/slot.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# define X() 4
-
-# define BOOST_PP_VALUE 1 + 2 + 3 + X()
-# include BOOST_PP_ASSIGN_SLOT(1)
-
-# undef X
-
-BEGIN BOOST_PP_SLOT(1) == 10 END
-
-# define BOOST_PP_VALUE BOOST_PP_SLOT(1) * BOOST_PP_SLOT(1)
-# include BOOST_PP_ASSIGN_SLOT(1)
-
-BEGIN BOOST_PP_SLOT(1) == 100 END
+# include <libs/preprocessor/test/slot.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/slot.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/slot.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/slot.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,19 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/slot.hpp>
-# include <libs/preprocessor/test/test.h>
-
-# define X() 4
-
-# define BOOST_PP_VALUE 1 + 2 + 3 + X()
-# include BOOST_PP_ASSIGN_SLOT(1)
-
-# undef X
-
-BEGIN BOOST_PP_SLOT(1) == 10 END
-
-# define BOOST_PP_VALUE BOOST_PP_SLOT(1) * BOOST_PP_SLOT(1)
-# include BOOST_PP_ASSIGN_SLOT(1)
-
-BEGIN BOOST_PP_SLOT(1) == 100 END
+# include <libs/preprocessor/test/slot.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/slot.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/slot.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,27 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/slot.hpp>
+# include <libs/preprocessor/test/test.h>
+
+# define X() 4
+
+# define BOOST_PP_VALUE 1 + 2 + 3 + X()
+# include BOOST_PP_ASSIGN_SLOT(1)
+
+# undef X
+
+BEGIN BOOST_PP_SLOT(1) == 10 END
+
+# define BOOST_PP_VALUE BOOST_PP_SLOT(1) * BOOST_PP_SLOT(1)
+# include BOOST_PP_ASSIGN_SLOT(1)
+
+BEGIN BOOST_PP_SLOT(1) == 100 END
Modified: branches/pplib/v2/libs/preprocessor/test/tuple.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/tuple.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/tuple.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,94 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/tuple.hpp>
-# include <boost/preprocessor/array/elem.hpp>
-# include <boost/preprocessor/list/at.hpp>
-# include <boost/preprocessor/seq/elem.hpp>
-# if BOOST_PP_VARIADICS
-# include <boost/preprocessor/variadic/size.hpp>
-# include <boost/preprocessor/variadic/elem.hpp>
-# endif
-# include <libs/preprocessor/test/test.h>
-
-# define TUPLE (0, 1, 2, 3, 4, 5)
-# define TUPLE_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
-# define TUPLE_VERY_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)
-# define T2 (+3, /2, +6)
-
-#if BOOST_PP_VARIADICS
-
-# define CALC(x) BOOST_PP_TUPLE_ELEM(0, x) BOOST_PP_TUPLE_ELEM(1, x) BOOST_PP_TUPLE_ELEM(2, x)
-# define TEST_EAT BOOST_PP_TUPLE_EAT()(1, 2) 4
-# define TEST_EAT_LARGE BOOST_PP_TUPLE_EAT()(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) 6
-# define TEST_EAT_VERY_LARGE BOOST_PP_TUPLE_EAT()(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) 8
-
-#else
-
-# define CALC(x) BOOST_PP_TUPLE_ELEM(3, 0, x) BOOST_PP_TUPLE_ELEM(3, 1, x) BOOST_PP_TUPLE_ELEM(3, 2, x)
-# define TEST_EAT BOOST_PP_TUPLE_EAT(2)(1, 2) 4
-# define TEST_EAT_LARGE BOOST_PP_TUPLE_EAT(33)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) 6
-# define TEST_EAT_VERY_LARGE BOOST_PP_TUPLE_EAT(64)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) 8
-
-#endif
-
-BEGIN BOOST_PP_TUPLE_ELEM(6, 3, TUPLE) == 3 END
-BEGIN BOOST_PP_TUPLE_ELEM(6, 5, TUPLE) == 5 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 15, TUPLE_LARGE) == 15 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 27, TUPLE_LARGE) == 27 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 32, TUPLE_LARGE) == 32 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 22, TUPLE_VERY_LARGE) == 22 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 47, TUPLE_VERY_LARGE) == 47 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 63, TUPLE_VERY_LARGE) == 63 END
-BEGIN BOOST_PP_TUPLE_ELEM(6, 2, BOOST_PP_TUPLE_REVERSE(6,TUPLE)) == 3 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 27, BOOST_PP_TUPLE_REVERSE(33,TUPLE_LARGE)) == 5 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 43, BOOST_PP_TUPLE_REVERSE(64,TUPLE_VERY_LARGE)) == 20 END
-BEGIN CALC(T2) == 7 END
-BEGIN CALC(BOOST_PP_TUPLE_REVERSE(3, T2)) == 6 END
-BEGIN TEST_EAT == 4 END
-BEGIN TEST_EAT_LARGE == 6 END
-BEGIN TEST_EAT_VERY_LARGE == 8 END
-BEGIN BOOST_PP_ARRAY_ELEM(3,BOOST_PP_TUPLE_TO_ARRAY(6,TUPLE)) == 3 END
-BEGIN BOOST_PP_ARRAY_ELEM(29,BOOST_PP_TUPLE_TO_ARRAY(33,TUPLE_LARGE)) == 29 END
-BEGIN BOOST_PP_ARRAY_ELEM(61,BOOST_PP_TUPLE_TO_ARRAY(64,TUPLE_VERY_LARGE)) == 61 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(6,TUPLE), 2) == 2 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(33,TUPLE_LARGE), 19) == 19 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(64,TUPLE_VERY_LARGE), 62) == 62 END
-BEGIN BOOST_PP_SEQ_ELEM(4,BOOST_PP_TUPLE_TO_SEQ(6,TUPLE)) == 4 END
-BEGIN BOOST_PP_SEQ_ELEM(31,BOOST_PP_TUPLE_TO_SEQ(33,TUPLE_LARGE)) == 31 END
-BEGIN BOOST_PP_SEQ_ELEM(55,BOOST_PP_TUPLE_TO_SEQ(64,TUPLE_VERY_LARGE)) == 55 END
-
-#if BOOST_PP_VARIADICS
-
-BEGIN BOOST_PP_TUPLE_ELEM(3, TUPLE) == 3 END
-BEGIN BOOST_PP_TUPLE_ELEM(5, TUPLE) == 5 END
-BEGIN BOOST_PP_TUPLE_ELEM(15, TUPLE_LARGE) == 15 END
-BEGIN BOOST_PP_TUPLE_ELEM(27, TUPLE_LARGE) == 27 END
-BEGIN BOOST_PP_TUPLE_ELEM(32, TUPLE_LARGE) == 32 END
-BEGIN BOOST_PP_TUPLE_ELEM(22, TUPLE_VERY_LARGE) == 22 END
-BEGIN BOOST_PP_TUPLE_ELEM(47, TUPLE_VERY_LARGE) == 47 END
-BEGIN BOOST_PP_TUPLE_ELEM(63, TUPLE_VERY_LARGE) == 63 END
-BEGIN BOOST_PP_TUPLE_ELEM(2, BOOST_PP_TUPLE_REVERSE(TUPLE)) == 3 END
-BEGIN BOOST_PP_TUPLE_ELEM(27, BOOST_PP_TUPLE_REVERSE(TUPLE_LARGE)) == 5 END
-BEGIN BOOST_PP_TUPLE_ELEM(43, BOOST_PP_TUPLE_REVERSE(TUPLE_VERY_LARGE)) == 20 END
-BEGIN CALC(BOOST_PP_TUPLE_REVERSE(T2)) == 6 END
-BEGIN BOOST_PP_VARIADIC_ELEM(2,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE))) == 3 END
-BEGIN BOOST_PP_VARIADIC_ELEM(27,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE_LARGE))) == 5 END
-BEGIN BOOST_PP_VARIADIC_ELEM(45,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE_VERY_LARGE))) == 18 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE)) == 6 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE_LARGE)) == 33 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE_VERY_LARGE)) == 64 END
-BEGIN BOOST_PP_TUPLE_SIZE(TUPLE) == 6 END
-BEGIN BOOST_PP_TUPLE_SIZE(TUPLE_LARGE) == 33 END
-BEGIN BOOST_PP_TUPLE_SIZE(TUPLE_VERY_LARGE) == 64 END
-BEGIN BOOST_PP_ARRAY_ELEM(3,BOOST_PP_TUPLE_TO_ARRAY(TUPLE)) == 3 END
-BEGIN BOOST_PP_ARRAY_ELEM(29,BOOST_PP_TUPLE_TO_ARRAY(TUPLE_LARGE)) == 29 END
-BEGIN BOOST_PP_ARRAY_ELEM(61,BOOST_PP_TUPLE_TO_ARRAY(TUPLE_VERY_LARGE)) == 61 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE), 2) == 2 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE_LARGE), 19) == 19 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE_VERY_LARGE), 62) == 62 END
-BEGIN BOOST_PP_SEQ_ELEM(4,BOOST_PP_TUPLE_TO_SEQ(TUPLE)) == 4 END
-BEGIN BOOST_PP_SEQ_ELEM(31,BOOST_PP_TUPLE_TO_SEQ(TUPLE_LARGE)) == 31 END
-BEGIN BOOST_PP_SEQ_ELEM(55,BOOST_PP_TUPLE_TO_SEQ(TUPLE_VERY_LARGE)) == 55 END
-
-#endif
+# include <libs/preprocessor/test/tuple.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/tuple.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/tuple.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/tuple.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -11,94 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/tuple.hpp>
-# include <boost/preprocessor/array/elem.hpp>
-# include <boost/preprocessor/list/at.hpp>
-# include <boost/preprocessor/seq/elem.hpp>
-# if BOOST_PP_VARIADICS
-# include <boost/preprocessor/variadic/size.hpp>
-# include <boost/preprocessor/variadic/elem.hpp>
-# endif
-# include <libs/preprocessor/test/test.h>
-
-# define TUPLE (0, 1, 2, 3, 4, 5)
-# define TUPLE_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
-# define TUPLE_VERY_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)
-# define T2 (+3, /2, +6)
-
-#if BOOST_PP_VARIADICS
-
-# define CALC(x) BOOST_PP_TUPLE_ELEM(0, x) BOOST_PP_TUPLE_ELEM(1, x) BOOST_PP_TUPLE_ELEM(2, x)
-# define TEST_EAT BOOST_PP_TUPLE_EAT()(1, 2) 4
-# define TEST_EAT_LARGE BOOST_PP_TUPLE_EAT()(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) 6
-# define TEST_EAT_VERY_LARGE BOOST_PP_TUPLE_EAT()(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) 8
-
-#else
-
-# define CALC(x) BOOST_PP_TUPLE_ELEM(3, 0, x) BOOST_PP_TUPLE_ELEM(3, 1, x) BOOST_PP_TUPLE_ELEM(3, 2, x)
-# define TEST_EAT BOOST_PP_TUPLE_EAT(2)(1, 2) 4
-# define TEST_EAT_LARGE BOOST_PP_TUPLE_EAT(33)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) 6
-# define TEST_EAT_VERY_LARGE BOOST_PP_TUPLE_EAT(64)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) 8
-
-#endif
-
-BEGIN BOOST_PP_TUPLE_ELEM(6, 3, TUPLE) == 3 END
-BEGIN BOOST_PP_TUPLE_ELEM(6, 5, TUPLE) == 5 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 15, TUPLE_LARGE) == 15 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 27, TUPLE_LARGE) == 27 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 32, TUPLE_LARGE) == 32 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 22, TUPLE_VERY_LARGE) == 22 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 47, TUPLE_VERY_LARGE) == 47 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 63, TUPLE_VERY_LARGE) == 63 END
-BEGIN BOOST_PP_TUPLE_ELEM(6, 2, BOOST_PP_TUPLE_REVERSE(6,TUPLE)) == 3 END
-BEGIN BOOST_PP_TUPLE_ELEM(33, 27, BOOST_PP_TUPLE_REVERSE(33,TUPLE_LARGE)) == 5 END
-BEGIN BOOST_PP_TUPLE_ELEM(64, 43, BOOST_PP_TUPLE_REVERSE(64,TUPLE_VERY_LARGE)) == 20 END
-BEGIN CALC(T2) == 7 END
-BEGIN CALC(BOOST_PP_TUPLE_REVERSE(3, T2)) == 6 END
-BEGIN TEST_EAT == 4 END
-BEGIN TEST_EAT_LARGE == 6 END
-BEGIN TEST_EAT_VERY_LARGE == 8 END
-BEGIN BOOST_PP_ARRAY_ELEM(3,BOOST_PP_TUPLE_TO_ARRAY(6,TUPLE)) == 3 END
-BEGIN BOOST_PP_ARRAY_ELEM(29,BOOST_PP_TUPLE_TO_ARRAY(33,TUPLE_LARGE)) == 29 END
-BEGIN BOOST_PP_ARRAY_ELEM(61,BOOST_PP_TUPLE_TO_ARRAY(64,TUPLE_VERY_LARGE)) == 61 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(6,TUPLE), 2) == 2 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(33,TUPLE_LARGE), 19) == 19 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(64,TUPLE_VERY_LARGE), 62) == 62 END
-BEGIN BOOST_PP_SEQ_ELEM(4,BOOST_PP_TUPLE_TO_SEQ(6,TUPLE)) == 4 END
-BEGIN BOOST_PP_SEQ_ELEM(31,BOOST_PP_TUPLE_TO_SEQ(33,TUPLE_LARGE)) == 31 END
-BEGIN BOOST_PP_SEQ_ELEM(55,BOOST_PP_TUPLE_TO_SEQ(64,TUPLE_VERY_LARGE)) == 55 END
-
-#if BOOST_PP_VARIADICS
-
-BEGIN BOOST_PP_TUPLE_ELEM(3, TUPLE) == 3 END
-BEGIN BOOST_PP_TUPLE_ELEM(5, TUPLE) == 5 END
-BEGIN BOOST_PP_TUPLE_ELEM(15, TUPLE_LARGE) == 15 END
-BEGIN BOOST_PP_TUPLE_ELEM(27, TUPLE_LARGE) == 27 END
-BEGIN BOOST_PP_TUPLE_ELEM(32, TUPLE_LARGE) == 32 END
-BEGIN BOOST_PP_TUPLE_ELEM(22, TUPLE_VERY_LARGE) == 22 END
-BEGIN BOOST_PP_TUPLE_ELEM(47, TUPLE_VERY_LARGE) == 47 END
-BEGIN BOOST_PP_TUPLE_ELEM(63, TUPLE_VERY_LARGE) == 63 END
-BEGIN BOOST_PP_TUPLE_ELEM(2, BOOST_PP_TUPLE_REVERSE(TUPLE)) == 3 END
-BEGIN BOOST_PP_TUPLE_ELEM(27, BOOST_PP_TUPLE_REVERSE(TUPLE_LARGE)) == 5 END
-BEGIN BOOST_PP_TUPLE_ELEM(43, BOOST_PP_TUPLE_REVERSE(TUPLE_VERY_LARGE)) == 20 END
-BEGIN CALC(BOOST_PP_TUPLE_REVERSE(T2)) == 6 END
-BEGIN BOOST_PP_VARIADIC_ELEM(2,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE))) == 3 END
-BEGIN BOOST_PP_VARIADIC_ELEM(27,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE_LARGE))) == 5 END
-BEGIN BOOST_PP_VARIADIC_ELEM(45,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE_VERY_LARGE))) == 18 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE)) == 6 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE_LARGE)) == 33 END
-BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE_VERY_LARGE)) == 64 END
-BEGIN BOOST_PP_TUPLE_SIZE(TUPLE) == 6 END
-BEGIN BOOST_PP_TUPLE_SIZE(TUPLE_LARGE) == 33 END
-BEGIN BOOST_PP_TUPLE_SIZE(TUPLE_VERY_LARGE) == 64 END
-BEGIN BOOST_PP_ARRAY_ELEM(3,BOOST_PP_TUPLE_TO_ARRAY(TUPLE)) == 3 END
-BEGIN BOOST_PP_ARRAY_ELEM(29,BOOST_PP_TUPLE_TO_ARRAY(TUPLE_LARGE)) == 29 END
-BEGIN BOOST_PP_ARRAY_ELEM(61,BOOST_PP_TUPLE_TO_ARRAY(TUPLE_VERY_LARGE)) == 61 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE), 2) == 2 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE_LARGE), 19) == 19 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE_VERY_LARGE), 62) == 62 END
-BEGIN BOOST_PP_SEQ_ELEM(4,BOOST_PP_TUPLE_TO_SEQ(TUPLE)) == 4 END
-BEGIN BOOST_PP_SEQ_ELEM(31,BOOST_PP_TUPLE_TO_SEQ(TUPLE_LARGE)) == 31 END
-BEGIN BOOST_PP_SEQ_ELEM(55,BOOST_PP_TUPLE_TO_SEQ(TUPLE_VERY_LARGE)) == 55 END
-
-#endif
+# include <libs/preprocessor/test/tuple.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/tuple.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/tuple.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,104 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2002.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* Revised by Edward Diener (2011) */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/tuple.hpp>
+# include <boost/preprocessor/array/elem.hpp>
+# include <boost/preprocessor/list/at.hpp>
+# include <boost/preprocessor/seq/elem.hpp>
+# if BOOST_PP_VARIADICS
+# include <boost/preprocessor/variadic/size.hpp>
+# include <boost/preprocessor/variadic/elem.hpp>
+# endif
+# include <libs/preprocessor/test/test.h>
+
+# define TUPLE (0, 1, 2, 3, 4, 5)
+# define TUPLE_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
+# define TUPLE_VERY_LARGE (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)
+# define T2 (+3, /2, +6)
+
+#if BOOST_PP_VARIADICS
+
+# define CALC(x) BOOST_PP_TUPLE_ELEM(0, x) BOOST_PP_TUPLE_ELEM(1, x) BOOST_PP_TUPLE_ELEM(2, x)
+# define TEST_EAT BOOST_PP_TUPLE_EAT()(1, 2) 4
+# define TEST_EAT_LARGE BOOST_PP_TUPLE_EAT()(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) 6
+# define TEST_EAT_VERY_LARGE BOOST_PP_TUPLE_EAT()(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) 8
+
+#else
+
+# define CALC(x) BOOST_PP_TUPLE_ELEM(3, 0, x) BOOST_PP_TUPLE_ELEM(3, 1, x) BOOST_PP_TUPLE_ELEM(3, 2, x)
+# define TEST_EAT BOOST_PP_TUPLE_EAT(2)(1, 2) 4
+# define TEST_EAT_LARGE BOOST_PP_TUPLE_EAT(33)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) 6
+# define TEST_EAT_VERY_LARGE BOOST_PP_TUPLE_EAT(64)(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) 8
+
+#endif
+
+BEGIN BOOST_PP_TUPLE_ELEM(6, 3, TUPLE) == 3 END
+BEGIN BOOST_PP_TUPLE_ELEM(6, 5, TUPLE) == 5 END
+BEGIN BOOST_PP_TUPLE_ELEM(33, 15, TUPLE_LARGE) == 15 END
+BEGIN BOOST_PP_TUPLE_ELEM(33, 27, TUPLE_LARGE) == 27 END
+BEGIN BOOST_PP_TUPLE_ELEM(33, 32, TUPLE_LARGE) == 32 END
+BEGIN BOOST_PP_TUPLE_ELEM(64, 22, TUPLE_VERY_LARGE) == 22 END
+BEGIN BOOST_PP_TUPLE_ELEM(64, 47, TUPLE_VERY_LARGE) == 47 END
+BEGIN BOOST_PP_TUPLE_ELEM(64, 63, TUPLE_VERY_LARGE) == 63 END
+BEGIN BOOST_PP_TUPLE_ELEM(6, 2, BOOST_PP_TUPLE_REVERSE(6,TUPLE)) == 3 END
+BEGIN BOOST_PP_TUPLE_ELEM(33, 27, BOOST_PP_TUPLE_REVERSE(33,TUPLE_LARGE)) == 5 END
+BEGIN BOOST_PP_TUPLE_ELEM(64, 43, BOOST_PP_TUPLE_REVERSE(64,TUPLE_VERY_LARGE)) == 20 END
+BEGIN CALC(T2) == 7 END
+BEGIN CALC(BOOST_PP_TUPLE_REVERSE(3, T2)) == 6 END
+BEGIN TEST_EAT == 4 END
+BEGIN TEST_EAT_LARGE == 6 END
+BEGIN TEST_EAT_VERY_LARGE == 8 END
+BEGIN BOOST_PP_ARRAY_ELEM(3,BOOST_PP_TUPLE_TO_ARRAY(6,TUPLE)) == 3 END
+BEGIN BOOST_PP_ARRAY_ELEM(29,BOOST_PP_TUPLE_TO_ARRAY(33,TUPLE_LARGE)) == 29 END
+BEGIN BOOST_PP_ARRAY_ELEM(61,BOOST_PP_TUPLE_TO_ARRAY(64,TUPLE_VERY_LARGE)) == 61 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(6,TUPLE), 2) == 2 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(33,TUPLE_LARGE), 19) == 19 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(64,TUPLE_VERY_LARGE), 62) == 62 END
+BEGIN BOOST_PP_SEQ_ELEM(4,BOOST_PP_TUPLE_TO_SEQ(6,TUPLE)) == 4 END
+BEGIN BOOST_PP_SEQ_ELEM(31,BOOST_PP_TUPLE_TO_SEQ(33,TUPLE_LARGE)) == 31 END
+BEGIN BOOST_PP_SEQ_ELEM(55,BOOST_PP_TUPLE_TO_SEQ(64,TUPLE_VERY_LARGE)) == 55 END
+
+#if BOOST_PP_VARIADICS
+
+BEGIN BOOST_PP_TUPLE_ELEM(3, TUPLE) == 3 END
+BEGIN BOOST_PP_TUPLE_ELEM(5, TUPLE) == 5 END
+BEGIN BOOST_PP_TUPLE_ELEM(15, TUPLE_LARGE) == 15 END
+BEGIN BOOST_PP_TUPLE_ELEM(27, TUPLE_LARGE) == 27 END
+BEGIN BOOST_PP_TUPLE_ELEM(32, TUPLE_LARGE) == 32 END
+BEGIN BOOST_PP_TUPLE_ELEM(22, TUPLE_VERY_LARGE) == 22 END
+BEGIN BOOST_PP_TUPLE_ELEM(47, TUPLE_VERY_LARGE) == 47 END
+BEGIN BOOST_PP_TUPLE_ELEM(63, TUPLE_VERY_LARGE) == 63 END
+BEGIN BOOST_PP_TUPLE_ELEM(2, BOOST_PP_TUPLE_REVERSE(TUPLE)) == 3 END
+BEGIN BOOST_PP_TUPLE_ELEM(27, BOOST_PP_TUPLE_REVERSE(TUPLE_LARGE)) == 5 END
+BEGIN BOOST_PP_TUPLE_ELEM(43, BOOST_PP_TUPLE_REVERSE(TUPLE_VERY_LARGE)) == 20 END
+BEGIN CALC(BOOST_PP_TUPLE_REVERSE(T2)) == 6 END
+BEGIN BOOST_PP_VARIADIC_ELEM(2,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE))) == 3 END
+BEGIN BOOST_PP_VARIADIC_ELEM(27,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE_LARGE))) == 5 END
+BEGIN BOOST_PP_VARIADIC_ELEM(45,BOOST_PP_TUPLE_ENUM(BOOST_PP_TUPLE_REVERSE(TUPLE_VERY_LARGE))) == 18 END
+BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE)) == 6 END
+BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE_LARGE)) == 33 END
+BEGIN BOOST_PP_VARIADIC_SIZE(BOOST_PP_TUPLE_ENUM(TUPLE_VERY_LARGE)) == 64 END
+BEGIN BOOST_PP_TUPLE_SIZE(TUPLE) == 6 END
+BEGIN BOOST_PP_TUPLE_SIZE(TUPLE_LARGE) == 33 END
+BEGIN BOOST_PP_TUPLE_SIZE(TUPLE_VERY_LARGE) == 64 END
+BEGIN BOOST_PP_ARRAY_ELEM(3,BOOST_PP_TUPLE_TO_ARRAY(TUPLE)) == 3 END
+BEGIN BOOST_PP_ARRAY_ELEM(29,BOOST_PP_TUPLE_TO_ARRAY(TUPLE_LARGE)) == 29 END
+BEGIN BOOST_PP_ARRAY_ELEM(61,BOOST_PP_TUPLE_TO_ARRAY(TUPLE_VERY_LARGE)) == 61 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE), 2) == 2 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE_LARGE), 19) == 19 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_TUPLE_TO_LIST(TUPLE_VERY_LARGE), 62) == 62 END
+BEGIN BOOST_PP_SEQ_ELEM(4,BOOST_PP_TUPLE_TO_SEQ(TUPLE)) == 4 END
+BEGIN BOOST_PP_SEQ_ELEM(31,BOOST_PP_TUPLE_TO_SEQ(TUPLE_LARGE)) == 31 END
+BEGIN BOOST_PP_SEQ_ELEM(55,BOOST_PP_TUPLE_TO_SEQ(TUPLE_VERY_LARGE)) == 55 END
+
+#endif
Modified: branches/pplib/v2/libs/preprocessor/test/variadic.c
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/variadic.c (original)
+++ branches/pplib/v2/libs/preprocessor/test/variadic.c 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,48 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/variadic.hpp>
-# include <boost/preprocessor/array/size.hpp>
-# include <boost/preprocessor/array/elem.hpp>
-# include <boost/preprocessor/list/at.hpp>
-# include <boost/preprocessor/list/size.hpp>
-# include <boost/preprocessor/seq/elem.hpp>
-# include <boost/preprocessor/seq/size.hpp>
-# include <boost/preprocessor/tuple/size.hpp>
-# include <boost/preprocessor/tuple/elem.hpp>
-# include <libs/preprocessor/test/test.h>
-
-#if BOOST_PP_VARIADICS
-
-#define VDATA 0,1,2,3,4,5,6
-#define VDATA_LARGE 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32
-#define VDATA_VERY_LARGE 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63
-
-BEGIN BOOST_PP_VARIADIC_ELEM(4,VDATA) == 4 END
-BEGIN BOOST_PP_VARIADIC_ELEM(6,7,11,3,8,14,85,56,92,165) == 56 END
-BEGIN BOOST_PP_VARIADIC_ELEM(29,VDATA_LARGE) == 29 END
-BEGIN BOOST_PP_VARIADIC_ELEM(57,VDATA_VERY_LARGE) == 57 END
-BEGIN BOOST_PP_VARIADIC_ELEM(35, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) == 35 END
-BEGIN BOOST_PP_VARIADIC_SIZE(VDATA) == 7 END
-BEGIN BOOST_PP_VARIADIC_SIZE(7,11,3,8,14,85,56,92,165) == 9 END
-BEGIN BOOST_PP_VARIADIC_SIZE(VDATA_LARGE) == 33 END
-BEGIN BOOST_PP_VARIADIC_SIZE(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) == 33 END
-BEGIN BOOST_PP_VARIADIC_SIZE(VDATA_VERY_LARGE) == 64 END
-BEGIN BOOST_PP_ARRAY_SIZE(BOOST_PP_VARIADIC_TO_ARRAY(VDATA)) == 7 END
-BEGIN BOOST_PP_ARRAY_SIZE(BOOST_PP_VARIADIC_TO_ARRAY(VDATA_VERY_LARGE)) == 64 END
-BEGIN BOOST_PP_ARRAY_ELEM(4,BOOST_PP_VARIADIC_TO_ARRAY(7,11,3,8,14,85,56,92,165)) == 14 END
-BEGIN BOOST_PP_ARRAY_ELEM(30,BOOST_PP_VARIADIC_TO_ARRAY(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)) == 30 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_VARIADIC_TO_LIST(VDATA),3) == 3 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_VARIADIC_TO_LIST(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63),49) == 49 END
-BEGIN BOOST_PP_LIST_SIZE(BOOST_PP_VARIADIC_TO_LIST(7,11,3,8,14,85,56,92,165)) == 9 END
-BEGIN BOOST_PP_LIST_SIZE(BOOST_PP_VARIADIC_TO_LIST(VDATA_LARGE)) == 33 END
-BEGIN BOOST_PP_SEQ_ELEM(5,BOOST_PP_VARIADIC_TO_SEQ(VDATA)) == 5 END
-BEGIN BOOST_PP_SEQ_ELEM(16,BOOST_PP_VARIADIC_TO_SEQ(VDATA_LARGE)) == 16 END
-BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_VARIADIC_TO_SEQ(3,78,22,11,3)) == 5 END
-BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_VARIADIC_TO_SEQ(VDATA_VERY_LARGE)) == 64 END
-BEGIN BOOST_PP_TUPLE_SIZE(BOOST_PP_VARIADIC_TO_TUPLE(VDATA)) == 7 END
-BEGIN BOOST_PP_TUPLE_SIZE(BOOST_PP_VARIADIC_TO_TUPLE(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)) == 64 END
-BEGIN BOOST_PP_TUPLE_ELEM(8,BOOST_PP_VARIADIC_TO_TUPLE(7,11,3,8,14,85,56,92,165)) == 165 END
-BEGIN BOOST_PP_TUPLE_ELEM(27,BOOST_PP_VARIADIC_TO_TUPLE(VDATA_LARGE)) == 27 END
-
-#endif
+# include <libs/preprocessor/test/variadic.cxx>
Modified: branches/pplib/v2/libs/preprocessor/test/variadic.cpp
==============================================================================
--- branches/pplib/v2/libs/preprocessor/test/variadic.cpp (original)
+++ branches/pplib/v2/libs/preprocessor/test/variadic.cpp 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -9,48 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
-# include <boost/preprocessor/variadic.hpp>
-# include <boost/preprocessor/array/size.hpp>
-# include <boost/preprocessor/array/elem.hpp>
-# include <boost/preprocessor/list/at.hpp>
-# include <boost/preprocessor/list/size.hpp>
-# include <boost/preprocessor/seq/elem.hpp>
-# include <boost/preprocessor/seq/size.hpp>
-# include <boost/preprocessor/tuple/size.hpp>
-# include <boost/preprocessor/tuple/elem.hpp>
-# include <libs/preprocessor/test/test.h>
-
-#if BOOST_PP_VARIADICS
-
-#define VDATA 0,1,2,3,4,5,6
-#define VDATA_LARGE 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32
-#define VDATA_VERY_LARGE 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63
-
-BEGIN BOOST_PP_VARIADIC_ELEM(4,VDATA) == 4 END
-BEGIN BOOST_PP_VARIADIC_ELEM(6,7,11,3,8,14,85,56,92,165) == 56 END
-BEGIN BOOST_PP_VARIADIC_ELEM(29,VDATA_LARGE) == 29 END
-BEGIN BOOST_PP_VARIADIC_ELEM(57,VDATA_VERY_LARGE) == 57 END
-BEGIN BOOST_PP_VARIADIC_ELEM(35, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) == 35 END
-BEGIN BOOST_PP_VARIADIC_SIZE(VDATA) == 7 END
-BEGIN BOOST_PP_VARIADIC_SIZE(7,11,3,8,14,85,56,92,165) == 9 END
-BEGIN BOOST_PP_VARIADIC_SIZE(VDATA_LARGE) == 33 END
-BEGIN BOOST_PP_VARIADIC_SIZE(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) == 33 END
-BEGIN BOOST_PP_VARIADIC_SIZE(VDATA_VERY_LARGE) == 64 END
-BEGIN BOOST_PP_ARRAY_SIZE(BOOST_PP_VARIADIC_TO_ARRAY(VDATA)) == 7 END
-BEGIN BOOST_PP_ARRAY_SIZE(BOOST_PP_VARIADIC_TO_ARRAY(VDATA_VERY_LARGE)) == 64 END
-BEGIN BOOST_PP_ARRAY_ELEM(4,BOOST_PP_VARIADIC_TO_ARRAY(7,11,3,8,14,85,56,92,165)) == 14 END
-BEGIN BOOST_PP_ARRAY_ELEM(30,BOOST_PP_VARIADIC_TO_ARRAY(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)) == 30 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_VARIADIC_TO_LIST(VDATA),3) == 3 END
-BEGIN BOOST_PP_LIST_AT(BOOST_PP_VARIADIC_TO_LIST(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63),49) == 49 END
-BEGIN BOOST_PP_LIST_SIZE(BOOST_PP_VARIADIC_TO_LIST(7,11,3,8,14,85,56,92,165)) == 9 END
-BEGIN BOOST_PP_LIST_SIZE(BOOST_PP_VARIADIC_TO_LIST(VDATA_LARGE)) == 33 END
-BEGIN BOOST_PP_SEQ_ELEM(5,BOOST_PP_VARIADIC_TO_SEQ(VDATA)) == 5 END
-BEGIN BOOST_PP_SEQ_ELEM(16,BOOST_PP_VARIADIC_TO_SEQ(VDATA_LARGE)) == 16 END
-BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_VARIADIC_TO_SEQ(3,78,22,11,3)) == 5 END
-BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_VARIADIC_TO_SEQ(VDATA_VERY_LARGE)) == 64 END
-BEGIN BOOST_PP_TUPLE_SIZE(BOOST_PP_VARIADIC_TO_TUPLE(VDATA)) == 7 END
-BEGIN BOOST_PP_TUPLE_SIZE(BOOST_PP_VARIADIC_TO_TUPLE(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)) == 64 END
-BEGIN BOOST_PP_TUPLE_ELEM(8,BOOST_PP_VARIADIC_TO_TUPLE(7,11,3,8,14,85,56,92,165)) == 165 END
-BEGIN BOOST_PP_TUPLE_ELEM(27,BOOST_PP_VARIADIC_TO_TUPLE(VDATA_LARGE)) == 27 END
-
-#endif
+# include <libs/preprocessor/test/variadic.cxx>
Added: branches/pplib/v2/libs/preprocessor/test/variadic.cxx
==============================================================================
--- (empty file)
+++ branches/pplib/v2/libs/preprocessor/test/variadic.cxx 2011-07-06 14:14:50 EDT (Wed, 06 Jul 2011)
@@ -0,0 +1,56 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Edward Diener 2011.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# include <boost/preprocessor/variadic.hpp>
+# include <boost/preprocessor/array/size.hpp>
+# include <boost/preprocessor/array/elem.hpp>
+# include <boost/preprocessor/list/at.hpp>
+# include <boost/preprocessor/list/size.hpp>
+# include <boost/preprocessor/seq/elem.hpp>
+# include <boost/preprocessor/seq/size.hpp>
+# include <boost/preprocessor/tuple/size.hpp>
+# include <boost/preprocessor/tuple/elem.hpp>
+# include <libs/preprocessor/test/test.h>
+
+#if BOOST_PP_VARIADICS
+
+#define VDATA 0,1,2,3,4,5,6
+#define VDATA_LARGE 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32
+#define VDATA_VERY_LARGE 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63
+
+BEGIN BOOST_PP_VARIADIC_ELEM(4,VDATA) == 4 END
+BEGIN BOOST_PP_VARIADIC_ELEM(6,7,11,3,8,14,85,56,92,165) == 56 END
+BEGIN BOOST_PP_VARIADIC_ELEM(29,VDATA_LARGE) == 29 END
+BEGIN BOOST_PP_VARIADIC_ELEM(57,VDATA_VERY_LARGE) == 57 END
+BEGIN BOOST_PP_VARIADIC_ELEM(35, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) == 35 END
+BEGIN BOOST_PP_VARIADIC_SIZE(VDATA) == 7 END
+BEGIN BOOST_PP_VARIADIC_SIZE(7,11,3,8,14,85,56,92,165) == 9 END
+BEGIN BOOST_PP_VARIADIC_SIZE(VDATA_LARGE) == 33 END
+BEGIN BOOST_PP_VARIADIC_SIZE(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32) == 33 END
+BEGIN BOOST_PP_VARIADIC_SIZE(VDATA_VERY_LARGE) == 64 END
+BEGIN BOOST_PP_ARRAY_SIZE(BOOST_PP_VARIADIC_TO_ARRAY(VDATA)) == 7 END
+BEGIN BOOST_PP_ARRAY_SIZE(BOOST_PP_VARIADIC_TO_ARRAY(VDATA_VERY_LARGE)) == 64 END
+BEGIN BOOST_PP_ARRAY_ELEM(4,BOOST_PP_VARIADIC_TO_ARRAY(7,11,3,8,14,85,56,92,165)) == 14 END
+BEGIN BOOST_PP_ARRAY_ELEM(30,BOOST_PP_VARIADIC_TO_ARRAY(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)) == 30 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_VARIADIC_TO_LIST(VDATA),3) == 3 END
+BEGIN BOOST_PP_LIST_AT(BOOST_PP_VARIADIC_TO_LIST(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63),49) == 49 END
+BEGIN BOOST_PP_LIST_SIZE(BOOST_PP_VARIADIC_TO_LIST(7,11,3,8,14,85,56,92,165)) == 9 END
+BEGIN BOOST_PP_LIST_SIZE(BOOST_PP_VARIADIC_TO_LIST(VDATA_LARGE)) == 33 END
+BEGIN BOOST_PP_SEQ_ELEM(5,BOOST_PP_VARIADIC_TO_SEQ(VDATA)) == 5 END
+BEGIN BOOST_PP_SEQ_ELEM(16,BOOST_PP_VARIADIC_TO_SEQ(VDATA_LARGE)) == 16 END
+BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_VARIADIC_TO_SEQ(3,78,22,11,3)) == 5 END
+BEGIN BOOST_PP_SEQ_SIZE(BOOST_PP_VARIADIC_TO_SEQ(VDATA_VERY_LARGE)) == 64 END
+BEGIN BOOST_PP_TUPLE_SIZE(BOOST_PP_VARIADIC_TO_TUPLE(VDATA)) == 7 END
+BEGIN BOOST_PP_TUPLE_SIZE(BOOST_PP_VARIADIC_TO_TUPLE(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63)) == 64 END
+BEGIN BOOST_PP_TUPLE_ELEM(8,BOOST_PP_VARIADIC_TO_TUPLE(7,11,3,8,14,85,56,92,165)) == 165 END
+BEGIN BOOST_PP_TUPLE_ELEM(27,BOOST_PP_VARIADIC_TO_TUPLE(VDATA_LARGE)) == 27 END
+
+#endif
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk