source: vendor/nemo/current/NEMOGCM/EXTERNAL/XIOS/extern/boost/include/boost/preprocessor/facilities/is_empty_or_1.hpp @ 44

Last change on this file since 44 was 44, checked in by cholod, 12 years ago

Load NEMO_TMP into vendor/nemo/current.

File size: 1.1 KB
Line 
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 BOOST_PREPROCESSOR_FACILITIES_IS_EMPTY_OR_1_HPP
13# define BOOST_PREPROCESSOR_FACILITIES_IS_EMPTY_OR_1_HPP
14#
15# include <boost/preprocessor/control/iif.hpp>
16# include <boost/preprocessor/facilities/empty.hpp>
17# include <boost/preprocessor/facilities/is_1.hpp>
18# include <boost/preprocessor/facilities/is_empty.hpp>
19#
20# /* BOOST_PP_IS_EMPTY_OR_1 */
21#
22# define BOOST_PP_IS_EMPTY_OR_1(x) \
23    BOOST_PP_IIF( \
24        BOOST_PP_IS_EMPTY(x BOOST_PP_EMPTY()), \
25        1 BOOST_PP_EMPTY, \
26        BOOST_PP_IS_1 \
27    )(x) \
28    /**/
29#
30# endif
Note: See TracBrowser for help on using the repository browser.