mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
// http://turtle.sourceforge.net
|
|
//
|
|
// Copyright Mathieu Champlon 2009
|
|
// Copyright 2020-2025 Alexander Grund
|
|
//
|
|
// 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 <boost/config.hpp>
|
|
|
|
#ifndef MOCK_ERROR_POLICY
|
|
# define MOCK_ERROR_POLICY mock::error
|
|
# define MOCK_USE_BOOST_TEST
|
|
#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(__cpp_lib_uncaught_exceptions) || defined(_MSC_VER) && (_MSC_VER >= 1900)
|
|
# ifndef MOCK_NO_UNCAUGHT_EXCEPTIONS
|
|
# define MOCK_UNCAUGHT_EXCEPTIONS
|
|
# endif
|
|
#endif
|
|
|
|
#if BOOST_VERSION >= 107700
|
|
# define MOCK_CXX_VERSION BOOST_CXX_VERSION
|
|
#elif defined(_MSC_VER)
|
|
# ifdef _MSVC_LANG
|
|
# define MOCK_CXX_VERSION _MSVC_LANG
|
|
# elif defined(_HAS_CXX17)
|
|
# define MOCK_CXX_VERSION 201703L
|
|
# endif
|
|
#endif
|
|
#ifndef MOCK_CXX_VERSION
|
|
# define MOCK_CXX_VERSION __cplusplus
|
|
#endif
|
|
|
|
#endif // MOCK_CONFIG_HPP_INCLUDED
|