Added missing check for BOOST_FT_MAX_ARITY when MOCK_MAX_ARGS was set to 21 or more

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@321 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2011-05-11 16:09:38 +00:00
parent 13cf400e82
commit 989830855c
2 changed files with 7 additions and 1 deletions

View file

@ -25,6 +25,12 @@
# error BOOST_FUNCTION_MAX_ARGS must be set to MOCK_MAX_ARGS or higher
#endif
#ifndef BOOST_FT_MAX_ARITY
# define BOOST_FT_MAX_ARITY BOOST_PP_INC(MOCK_MAX_ARGS)
#elif BOOST_PP_LESS_EQUAL(BOOST_FT_MAX_ARITY, MOCK_MAX_ARGS)
# error BOOST_FT_MAX_ARITY must be set to MOCK_MAX_ARGS + 1 or higher
#endif
#ifdef MOCK_USE_BOOST_PHOENIX
# ifndef PHOENIX_LIMIT
# define PHOENIX_LIMIT MOCK_MAX_ARGS