annotate DEPENDENCIES/generic/include/boost/spirit/home/support/nonterminal/locals.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Copyright (c) 2001-2011 Joel de Guzman
Chris@16 3 Copyright (c) 2001-2011 Hartmut Kaiser
Chris@16 4
Chris@16 5 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7 ==============================================================================*/
Chris@16 8 #if !defined(BOOST_SPIRIT_LOCALS_APRIL_03_2007_0506PM)
Chris@16 9 #define BOOST_SPIRIT_LOCALS_APRIL_03_2007_0506PM
Chris@16 10
Chris@16 11 #if defined(_MSC_VER)
Chris@16 12 #pragma once
Chris@16 13 #endif
Chris@16 14
Chris@16 15 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
Chris@16 16 #include <boost/preprocessor/repetition/enum_params.hpp>
Chris@16 17 #include <boost/mpl/vector.hpp>
Chris@16 18 #include <boost/mpl/bool.hpp>
Chris@16 19
Chris@16 20 #if !defined(BOOST_SPIRIT_MAX_LOCALS_SIZE)
Chris@16 21 # define BOOST_SPIRIT_MAX_LOCALS_SIZE 10
Chris@16 22 #else
Chris@16 23 # if BOOST_SPIRIT_MAX_LOCALS_SIZE < 3
Chris@16 24 # undef BOOST_SPIRIT_MAX_LOCALS_SIZE
Chris@16 25 # define BOOST_SPIRIT_MAX_LOCALS_SIZE 10
Chris@16 26 # endif
Chris@16 27 #endif
Chris@16 28
Chris@16 29 namespace boost { namespace spirit
Chris@16 30 {
Chris@16 31 ///////////////////////////////////////////////////////////////////////////
Chris@16 32 template <
Chris@16 33 BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
Chris@16 34 BOOST_SPIRIT_MAX_LOCALS_SIZE, typename T, mpl::na)
Chris@16 35 >
Chris@16 36 struct locals
Chris@16 37 : mpl::vector<BOOST_PP_ENUM_PARAMS(BOOST_SPIRIT_MAX_LOCALS_SIZE, T)> {};
Chris@16 38
Chris@16 39 ///////////////////////////////////////////////////////////////////////////
Chris@16 40 namespace detail
Chris@16 41 {
Chris@16 42 template <typename T>
Chris@16 43 struct is_locals
Chris@16 44 : mpl::false_
Chris@16 45 {};
Chris@16 46
Chris@16 47 template <BOOST_PP_ENUM_PARAMS(BOOST_SPIRIT_MAX_LOCALS_SIZE, typename T)>
Chris@16 48 struct is_locals<locals<BOOST_PP_ENUM_PARAMS(BOOST_SPIRIT_MAX_LOCALS_SIZE, T)> >
Chris@16 49 : mpl::true_
Chris@16 50 {};
Chris@16 51 }
Chris@16 52 }}
Chris@16 53
Chris@16 54 #endif