epoc32/include/stdapis/boost/preprocessor/array/size.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
# /* **************************************************************************
williamr@4
     2
#  *                                                                          *
williamr@4
     3
#  *     (C) Copyright Paul Mensonides 2002.
williamr@4
     4
#  *     Distributed under the Boost Software License, Version 1.0. (See
williamr@4
     5
#  *     accompanying file LICENSE_1_0.txt or copy at
williamr@4
     6
#  *     http://www.boost.org/LICENSE_1_0.txt)
williamr@4
     7
#  *                                                                          *
williamr@4
     8
#  ************************************************************************** */
williamr@4
     9
#
williamr@4
    10
# /* See http://www.boost.org for most recent version. */
williamr@4
    11
#
williamr@4
    12
# ifndef BOOST_PREPROCESSOR_ARRAY_SIZE_HPP
williamr@4
    13
# define BOOST_PREPROCESSOR_ARRAY_SIZE_HPP
williamr@4
    14
#
williamr@4
    15
# include <boost/preprocessor/config/config.hpp>
williamr@4
    16
# include <boost/preprocessor/tuple/elem.hpp>
williamr@4
    17
#
williamr@4
    18
# /* BOOST_PP_ARRAY_SIZE */
williamr@4
    19
#
williamr@4
    20
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
williamr@4
    21
#    define BOOST_PP_ARRAY_SIZE(array) BOOST_PP_TUPLE_ELEM(2, 0, array)
williamr@4
    22
# else
williamr@4
    23
#    define BOOST_PP_ARRAY_SIZE(array) BOOST_PP_ARRAY_SIZE_I(array)
williamr@4
    24
#    define BOOST_PP_ARRAY_SIZE_I(array) BOOST_PP_ARRAY_SIZE_II array
williamr@4
    25
#    define BOOST_PP_ARRAY_SIZE_II(size, data) size
williamr@4
    26
# endif
williamr@4
    27
#
williamr@4
    28
# endif