| 1 | /* |
| 2 | * Distributed under the Boost Software License, Version 1.0. |
| 3 | * (See accompanying file LICENSE_1_0.txt or copy at |
| 4 | * https://www.boost.org/LICENSE_1_0.txt) |
| 5 | * |
| 6 | * Copyright (c) 2023 Andrey Semashev |
| 7 | */ |
| 8 | /*! |
| 9 | * \file scope/detail/config.hpp |
| 10 | * |
| 11 | * This header contains Boost.Scope common configuration. |
| 12 | */ |
| 13 | |
| 14 | #ifndef BOOST_SCOPE_DETAIL_CONFIG_HPP_INCLUDED_ |
| 15 | #define BOOST_SCOPE_DETAIL_CONFIG_HPP_INCLUDED_ |
| 16 | |
| 17 | #include <boost/config.hpp> |
| 18 | #include <boost/scope/detail/header.hpp> |
| 19 | |
| 20 | #ifdef BOOST_HAS_PRAGMA_ONCE |
| 21 | #pragma once |
| 22 | #endif |
| 23 | |
| 24 | #if !(defined(__cpp_noexcept_function_type) && __cpp_noexcept_function_type >= 201510l) && !defined(_NOEXCEPT_TYPES_SUPPORTED) |
| 25 | #define BOOST_SCOPE_NO_CXX17_NOEXCEPT_FUNCTION_TYPES |
| 26 | #endif |
| 27 | |
| 28 | #if !defined(BOOST_SCOPE_DETAIL_DOC_ALT) |
| 29 | #if !defined(BOOST_SCOPE_DOXYGEN) |
| 30 | #define BOOST_SCOPE_DETAIL_DOC_ALT(alt, ...) __VA_ARGS__ |
| 31 | #else |
| 32 | #define BOOST_SCOPE_DETAIL_DOC_ALT(alt, ...) alt |
| 33 | #endif |
| 34 | #endif |
| 35 | |
| 36 | #if !defined(BOOST_SCOPE_DETAIL_DOC_HIDDEN) |
| 37 | #define BOOST_SCOPE_DETAIL_DOC_HIDDEN(...) BOOST_SCOPE_DETAIL_DOC_ALT(..., __VA_ARGS__) |
| 38 | #endif |
| 39 | |
| 40 | #if !defined(BOOST_SCOPE_DETAIL_DOC) |
| 41 | #if !defined(BOOST_SCOPE_DOXYGEN) |
| 42 | #define BOOST_SCOPE_DETAIL_DOC(...) |
| 43 | #else |
| 44 | #define BOOST_SCOPE_DETAIL_DOC(...) __VA_ARGS__ |
| 45 | #endif |
| 46 | #endif |
| 47 | |
| 48 | #include <boost/scope/detail/footer.hpp> |
| 49 | |
| 50 | #endif // BOOST_SCOPE_DETAIL_CONFIG_HPP_INCLUDED_ |
| 51 | |