]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/array/size.hpp
update boost to pre-1.30.0
[lyx.git] / boost / boost / preprocessor / array / size.hpp
1 # /* **************************************************************************
2 #  *                                                                          *
3 #  *     (C) Copyright Paul Mensonides 2002.  Permission to copy, use,        *
4 #  *     modify, sell, and distribute this software is granted provided       *
5 #  *     this copyright notice appears in all copies.  This software is       *
6 #  *     provided "as is" without express or implied warranty, and with       *
7 #  *     no claim at to its suitability for any purpose.                      *
8 #  *                                                                          *
9 #  ************************************************************************** */
10 #
11 # /* See http://www.boost.org for most recent version. */
12 #
13 # ifndef BOOST_PREPROCESSOR_ARRAY_SIZE_HPP
14 # define BOOST_PREPROCESSOR_ARRAY_SIZE_HPP
15 #
16 # include <boost/preprocessor/config/config.hpp>
17 # include <boost/preprocessor/tuple/elem.hpp>
18 #
19 # /* BOOST_PP_ARRAY_SIZE */
20 #
21 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
22 #    define BOOST_PP_ARRAY_SIZE(array) BOOST_PP_TUPLE_ELEM(2, 0, array)
23 # else
24 #    define BOOST_PP_ARRAY_SIZE(array) BOOST_PP_ARRAY_SIZE_I(array)
25 #    define BOOST_PP_ARRAY_SIZE_I(array) BOOST_PP_ARRAY_SIZE_II array
26 #    define BOOST_PP_ARRAY_SIZE_II(size, data) size
27 # endif
28 #
29 # endif