Debian Codegraph @

third-party/boost-math/include/boost/math/tools/header_deprecated.hpp

raw
1 // (C) Copyright Matt Borland 2021.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #ifndef BOOST_MATH_TOOLS_HEADER_DEPRECATED
7 #define BOOST_MATH_TOOLS_HEADER_DEPRECATED
8
9 #ifndef BOOST_MATH_STANDALONE
10
11 # include <boost/config/header_deprecated.hpp>
12 # define BOOST_MATH_HEADER_DEPRECATED(expr) BOOST_HEADER_DEPRECATED(expr)
13
14 #else
15
16 # ifdef _MSC_VER
17 // Expands to "This header is deprecated; use expr instead."
18 # define BOOST_MATH_HEADER_DEPRECATED(expr) __pragma("This header is deprecated; use " expr " instead.")
19 # else // GNU, Clang, Intel, IBM, etc.
20 // Expands to "This header is deprecated use expr instead"
21 # define BOOST_MATH_HEADER_DEPRECATED_MESSAGE(expr) _Pragma(#expr)
22 # define BOOST_MATH_HEADER_DEPRECATED(expr) BOOST_MATH_HEADER_DEPRECATED_MESSAGE(message "This header is deprecated use " expr " instead")
23 # endif
24
25 #endif // BOOST_MATH_STANDALONE
26
27 #endif // BOOST_MATH_TOOLS_HEADER_DEPRECATED