diff --git a/include/boost/preprocessor/array.hpp b/include/boost/preprocessor/array.hpp new file mode 100644 index 0000000..6e6e69a --- /dev/null +++ b/include/boost/preprocessor/array.hpp @@ -0,0 +1,26 @@ +# ifndef BOOST_PREPROCESSOR_ARRAY_HPP +# define BOOST_PREPROCESSOR_ARRAY_HPP +# +# /* ************************************************************************** +# * * +# * (C) Copyright Paul Mensonides 2002. Permission to copy, use, * +# * modify, sell, and distribute this software is granted provided * +# * this copyright notice appears in all copies. This software is * +# * provided "as is" without express or implied warranty, and with * +# * no claim at to its suitability for any purpose. * +# * * +# ************************************************************************** */ +# +# include +# +# define BOOST_PP_ARRAY(size, data) (size, data) +# +# define BOOST_PP_ARRAY_SIZE(arr) BOOST_PP_ARRAY_SIZE_I arr +# define BOOST_PP_ARRAY_SIZE_I(size, data) size +# +# define BOOST_PP_ARRAY_DATA(arr) BOOST_PP_ARRAY_DATA_I arr +# define BOOST_PP_ARRAY_DATA_I(size, data) data +# +# define BOOST_PP_ARRAY_ELEM(i, arr) BOOST_PP_TUPLE_ELEM(BOOST_PP_ARRAY_SIZE_I arr, i, BOOST_PP_ARRAY_DATA_I arr) +# +# endif