MessagePack for C++
is_empty_or_1.hpp
Go to the documentation of this file.
1 # /* **************************************************************************
2 # * *
3 # * (C) Copyright Paul Mensonides 2003.
4 # * Distributed under the Boost Software License, Version 1.0. (See
5 # * accompanying file LICENSE_1_0.txt or copy at
6 # * http://www.boost.org/LICENSE_1_0.txt)
7 # * *
8 # ************************************************************************** */
9 #
10 # /* See http://www.boost.org for most recent version. */
11 #
12 # ifndef MSGPACK_PREPROCESSOR_FACILITIES_IS_EMPTY_OR_1_HPP
13 # define MSGPACK_PREPROCESSOR_FACILITIES_IS_EMPTY_OR_1_HPP
14 #
20 #
21 # /* MSGPACK_PP_IS_EMPTY_OR_1 */
22 #
23 # define MSGPACK_PP_IS_EMPTY_OR_1(x) \
24  MSGPACK_PP_IIF( \
25  MSGPACK_PP_IS_EMPTY(x MSGPACK_PP_EMPTY()), \
26  MSGPACK_PP_IDENTITY(1), \
27  MSGPACK_PP_IS_1 \
28  )(x) \
29 
30 #
31 # endif