// http://turtle.sourceforge.net // // Copyright Mathieu Champlon 2009 // // 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) // boost-no-inspect #ifndef MOCK_CONFIG_HPP_INCLUDED #define MOCK_CONFIG_HPP_INCLUDED #include #include #include #ifndef MOCK_ERROR_POLICY # define MOCK_ERROR_POLICY mock::error # define MOCK_USE_BOOST_TEST #endif #ifndef MOCK_MAX_ARGS # define MOCK_MAX_ARGS 9 #endif #ifndef MOCK_MAX_SEQUENCES # define MOCK_MAX_SEQUENCES 10 #endif #ifndef BOOST_FUNCTION_MAX_ARGS # define BOOST_FUNCTION_MAX_ARGS MOCK_MAX_ARGS #elif BOOST_PP_LESS(BOOST_FUNCTION_MAX_ARGS, MOCK_MAX_ARGS) # 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 #if !defined(BOOST_NO_CXX11_NULLPTR) && !defined(BOOST_NO_NULLPTR) # ifndef MOCK_NO_NULLPTR # define MOCK_NULLPTR # endif #endif #if !defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_DECLTYPE) # ifndef MOCK_NO_DECLTYPE # define MOCK_DECLTYPE # endif #endif #if !defined(BOOST_NO_CXX11_VARIADIC_MACROS) && !defined(BOOST_NO_VARIADIC_MACROS) # ifndef MOCK_NO_VARIADIC_MACROS # define MOCK_VARIADIC_MACROS # endif #endif #if !defined(BOOST_NO_CXX11_SMART_PTR) && !defined(BOOST_NO_SMART_PTR) # ifndef MOCK_NO_SMART_PTR # define MOCK_SMART_PTR # endif #endif #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_RVALUE_REFERENCES) # ifndef MOCK_NO_RVALUE_REFERENCES # define MOCK_RVALUE_REFERENCES # endif #endif #if !defined(BOOST_NO_CXX11_HDR_FUNCTIONAL) # ifndef MOCK_NO_HDR_FUNCTIONAL # define MOCK_HDR_FUNCTIONAL # endif #endif #if !defined(BOOST_NO_CXX11_HDR_MUTEX) && !defined(BOOST_NO_0X_HDR_MUTEX) # ifndef MOCK_NO_HDR_MUTEX # define MOCK_HDR_MUTEX # endif #endif #if !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_LAMBDAS) # ifndef MOCK_NO_LAMBDAS # define MOCK_LAMBDAS # endif #endif #if !defined(BOOST_NO_AUTO_PTR) # ifndef MOCK_NO_AUTO_PTR # define MOCK_AUTO_PTR # endif #endif #if defined(__cpp_lib_uncaught_exceptions) || \ defined(_MSC_VER) && (_MSC_VER >= 1900) # ifndef MOCK_NO_UNCAUGHT_EXCEPTIONS # define MOCK_UNCAUGHT_EXCEPTIONS # endif #endif #endif // MOCK_CONFIG_HPP_INCLUDED