]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/facilities/is_empty.hpp
MathML for InsetMathBoldSymbol.
[lyx.git] / boost / boost / preprocessor / facilities / is_empty.hpp
1 # /* **************************************************************************\r
2 #  *                                                                          *\r
3 #  *     (C) Copyright Paul Mensonides 2003.\r
4 #  *     Distributed under the Boost Software License, Version 1.0. (See\r
5 #  *     accompanying file LICENSE_1_0.txt or copy at\r
6 #  *     http://www.boost.org/LICENSE_1_0.txt)\r
7 #  *                                                                          *\r
8 #  ************************************************************************** */\r
9 #\r
10 # /* See http://www.boost.org for most recent version. */\r
11 #\r
12 # ifndef BOOST_PREPROCESSOR_FACILITIES_IS_EMPTY_HPP\r
13 # define BOOST_PREPROCESSOR_FACILITIES_IS_EMPTY_HPP\r
14 #\r
15 # include <boost/preprocessor/config/config.hpp>\r
16 # include <boost/preprocessor/cat.hpp>\r
17 # include <boost/preprocessor/tuple/elem.hpp>\r
18 # include <boost/preprocessor/facilities/empty.hpp>\r
19 # include <boost/preprocessor/detail/split.hpp>\r
20 #\r
21 # /* BOOST_PP_IS_EMPTY */\r
22 #\r
23 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC() && ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()\r
24 #    define BOOST_PP_IS_EMPTY(x) BOOST_PP_IS_EMPTY_I(x BOOST_PP_IS_EMPTY_HELPER)\r
25 #    define BOOST_PP_IS_EMPTY_I(contents) BOOST_PP_TUPLE_ELEM(2, 1, (BOOST_PP_IS_EMPTY_DEF_ ## contents()))\r
26 #    define BOOST_PP_IS_EMPTY_DEF_BOOST_PP_IS_EMPTY_HELPER 1, 1 BOOST_PP_EMPTY\r
27 #    define BOOST_PP_IS_EMPTY_HELPER() , 0\r
28 # else\r
29 #    if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()\r
30 #        define BOOST_PP_IS_EMPTY(x) BOOST_PP_IS_EMPTY_I(BOOST_PP_IS_EMPTY_HELPER x ())\r
31 #        define BOOST_PP_IS_EMPTY_I(test) BOOST_PP_IS_EMPTY_II(BOOST_PP_SPLIT(0, BOOST_PP_CAT(BOOST_PP_IS_EMPTY_DEF_, test)))\r
32 #        define BOOST_PP_IS_EMPTY_II(id) id\r
33 #    else\r
34 #        define BOOST_PP_IS_EMPTY(x) BOOST_PP_IS_EMPTY_I((BOOST_PP_IS_EMPTY_HELPER x ()))\r
35 #        define BOOST_PP_IS_EMPTY_I(par) BOOST_PP_IS_EMPTY_II ## par\r
36 #        define BOOST_PP_IS_EMPTY_II(test) BOOST_PP_SPLIT(0, BOOST_PP_CAT(BOOST_PP_IS_EMPTY_DEF_, test))\r
37 #    endif\r
38 #    define BOOST_PP_IS_EMPTY_HELPER() 1\r
39 #    define BOOST_PP_IS_EMPTY_DEF_1 1, BOOST_PP_NIL\r
40 #    define BOOST_PP_IS_EMPTY_DEF_BOOST_PP_IS_EMPTY_HELPER 0, BOOST_PP_NIL\r
41 # endif\r
42 #\r
43 # endif\r