Hideaki Tai / msgpack-embedded

Dependents:   hello_message_pack

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers enum.hpp Source File

enum.hpp

00001 # /* **************************************************************************
00002 #  *                                                                          *
00003 #  *     (C) Copyright Edward Diener 2011.                                    *
00004 #  *     (C) Copyright Paul Mensonides 2011.                                  *
00005 #  *     Distributed under the Boost Software License, Version 1.0. (See      *
00006 #  *     accompanying file LICENSE_1_0.txt or copy at                         *
00007 #  *     http://www.boost.org/LICENSE_1_0.txt)                                *
00008 #  *                                                                          *
00009 #  ************************************************************************** */
00010 #
00011 # /* See http://www.boost.org for most recent version. */
00012 #
00013 # ifndef MSGPACK_PREPROCESSOR_ARRAY_ENUM_HPP
00014 # define MSGPACK_PREPROCESSOR_ARRAY_ENUM_HPP
00015 #
00016 # include <msgpack/preprocessor/cat.hpp>
00017 # include <msgpack/preprocessor/config/config.hpp>
00018 # include <msgpack/preprocessor/tuple/rem.hpp>
00019 #
00020 # /* MSGPACK_PP_ARRAY_ENUM */
00021 #
00022 # if MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MSVC()
00023 #    define MSGPACK_PP_ARRAY_ENUM(array) MSGPACK_PP_ARRAY_ENUM_I(MSGPACK_PP_TUPLE_REM_CTOR, array)
00024 #    define MSGPACK_PP_ARRAY_ENUM_I(m, args) MSGPACK_PP_ARRAY_ENUM_II(m, args)
00025 #    define MSGPACK_PP_ARRAY_ENUM_II(m, args) MSGPACK_PP_CAT(m ## args,)
00026 # elif MSGPACK_PP_CONFIG_FLAGS() & MSGPACK_PP_CONFIG_MWCC()
00027 #    define MSGPACK_PP_ARRAY_ENUM(array) MSGPACK_PP_ARRAY_ENUM_I(array)
00028 #    define MSGPACK_PP_ARRAY_ENUM_I(array) MSGPACK_PP_TUPLE_REM_CTOR ## array
00029 # else
00030 #    define MSGPACK_PP_ARRAY_ENUM(array) MSGPACK_PP_TUPLE_REM_CTOR array
00031 # endif
00032 #
00033 # endif