diff options
author | Kevin Smith <git@kismith.co.uk> | 2013-01-12 18:41:34 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2013-01-13 10:36:26 (GMT) |
commit | f3bc816af1b0d61452de973963e453bf3b3f95a2 (patch) | |
tree | e895f8afa3580e6cff6f5ad2017d45bf147a17c2 /3rdParty/Boost/src/boost/phoenix/core/limits.hpp | |
parent | 188fc285c6555eadd3c9d50ab8a94adcade78d89 (diff) | |
download | swift-f3bc816af1b0d61452de973963e453bf3b3f95a2.zip swift-f3bc816af1b0d61452de973963e453bf3b3f95a2.tar.bz2 |
Adding in the spirit Boost stuff
Change-Id: I4f127ce61667243b64081b0aa309028d5077045f
Diffstat (limited to '3rdParty/Boost/src/boost/phoenix/core/limits.hpp')
-rw-r--r-- | 3rdParty/Boost/src/boost/phoenix/core/limits.hpp | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/3rdParty/Boost/src/boost/phoenix/core/limits.hpp b/3rdParty/Boost/src/boost/phoenix/core/limits.hpp new file mode 100644 index 0000000..46ac69e --- /dev/null +++ b/3rdParty/Boost/src/boost/phoenix/core/limits.hpp @@ -0,0 +1,100 @@ +/*============================================================================= + Copyright (c) 2001-2007 Joel de Guzman + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +==============================================================================*/ +#ifndef BOOST_PHOENIX_CORE_LIMITS_HPP +#define BOOST_PHOENIX_CORE_LIMITS_HPP + +#include <boost/preprocessor/arithmetic/add.hpp> +#include <boost/preprocessor/inc.hpp> +#include <boost/preprocessor/dec.hpp> +#include <boost/preprocessor/stringize.hpp> +#include <boost/phoenix/version.hpp> +#include <boost/phoenix/support/preprocessor/round.hpp> + + +#if defined(BOOST_PHOENIX_LIMIT) +#define BOOST_PROTO_MAX_ARITY BOOST_PHOENIX_LIMIT +#include <boost/proto/proto_fwd.hpp> +#else +#include <boost/proto/proto_fwd.hpp> +#define BOOST_PHOENIX_LIMIT BOOST_PROTO_MAX_ARITY +#endif + +#define PHOENIX_LIMIT BOOST_PHOENIX_LIMIT + +#define BOOST_PHOENIX_LIMIT_STR BOOST_PP_STRINGIZE(BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT)) + +#if !defined(BOOST_PHOENIX_ARG_LIMIT) +# define BOOST_PHOENIX_ARG_LIMIT BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) +#elif (BOOST_PHOENIX_ARG_LIMIT < 5) +# error "BOOST_PHOENIX_ARG_LIMIT is set too low" +#elif BOOST_PHOENIX_ARG_LIMIT != BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) && !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) +# define BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES +#endif + +#if !defined(BOOST_PHOENIX_ACTOR_LIMIT) +# define BOOST_PHOENIX_ACTOR_LIMIT BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) +#elif (BOOST_PHOENIX_ACTOR_LIMIT > BOOST_PHOENIX_ARG_LIMIT) +# error "BOOST_PHOENIX_ACTOR_LIMIT > BOOST_PHOENIX_ARG_LIMIT" +#elif (BOOST_PHOENIX_ACTOR_LIMIT < 3) +# error "BOOST_PHOENIX_ACTOR_LIMIT is set too low" +#elif BOOST_PHOENIX_ACTOR_LIMIT != BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) && !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) +# define BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES +#endif + +#if !defined(BOOST_PHOENIX_PERFECT_FORWARD_LIMIT) +# define BOOST_PHOENIX_PERFECT_FORWARD_LIMIT 3 +#elif (BOOST_PHOENIX_PERFECT_FORWARD_LIMIT > BOOST_PHOENIX_ACTOR_LIMIT) +# error "BOOST_PHOENIX_PERFECT_FORWARD_LIMIT > BOOST_PHOENIX_ACTOR_LIMIT" +#elif (BOOST_PHOENIX_PERFECT_FORWARD_LIMIT < 3) +# error "BOOST_PHOENIX_PERFECT_FORWARD_LIMIT is set too low" +#elif BOOST_PHOENIX_PERFECT_FORWARD_LIMIT != 3 && !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) +# define BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES +#endif + +#if !defined(BOOST_PHOENIX_COMPOSITE_LIMIT) +# define BOOST_PHOENIX_COMPOSITE_LIMIT BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) +#elif (BOOST_PHOENIX_COMPOSITE_LIMIT < 5) +# error "BOOST_PHOENIX_COMPOSITE_LIMIT is set too low" +#elif BOOST_PHOENIX_COMPOSITE_LIMIT != BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) && !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) +# define BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES +#endif + +#if !defined(BOOST_PHOENIX_MEMBER_LIMIT) +# define BOOST_PHOENIX_MEMBER_LIMIT BOOST_PP_DEC(BOOST_PHOENIX_COMPOSITE_LIMIT) +#elif (BOOST_PHOENIX_MEMBER_LIMIT > BOOST_PHOENIX_COMPOSITE_LIMIT) +# error "BOOST_PHOENIX_MEMBER_LIMIT > BOOST_PHOENIX_COMPOSITE_LIMIT" +#elif (BOOST_PHOENIX_MEMBER_LIMIT < 3) +# error "BOOST_PHOENIX_MEMBER_LIMIT is set too low" +#elif BOOST_PHOENIX_MEMBER_LIMIT != BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) && !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) +# define BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES +#endif + +#if !defined(BOOST_PHOENIX_CATCH_LIMIT) +# define BOOST_PHOENIX_CATCH_LIMIT BOOST_PHOENIX_COMPOSITE_LIMIT +#elif (BOOST_PHOENIX_CATCH_LIMIT < 1) +# error "BOOST_PHOENIX_CATCH_LIMIT is set too low" +#elif BOOST_PHOENIX_CATCH_LIMIT != BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) && !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) +# define BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES +#endif + +#if !defined(BOOST_PHOENIX_DYNAMIC_LIMIT) +# define BOOST_PHOENIX_DYNAMIC_LIMIT BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) +#elif (BOOST_PHOENIX_DYNAMIC_LIMIT < 1) +# error "BOOST_PHOENIX_DYNAMIC_LIMIT is set too low" +#elif BOOST_PHOENIX_DYNAMIC_LIMIT != BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) && !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) +# define BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES +#endif + +#if !defined(BOOST_PHOENIX_LOCAL_LIMIT) +# define BOOST_PHOENIX_LOCAL_LIMIT BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) +#elif (BOOST_PHOENIX_LOCAL_LIMIT < 3) +# error "BOOST_PHOENIX_LOCAL_LIMIT is set too low" +#elif BOOST_PHOENIX_LOCAL_LIMIT != BOOST_PHOENIX_PP_ROUND_UP(BOOST_PHOENIX_LIMIT) && !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) +# define BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES +#endif + +#endif |