1 #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED
\r
2 #define BOOST_CURRENT_FUNCTION_HPP_INCLUDED
\r
4 // MS compatible compilers support #pragma once
\r
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
\r
11 // boost/current_function.hpp - BOOST_CURRENT_FUNCTION
\r
13 // Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
\r
15 // Distributed under the Boost Software License, Version 1.0. (See
\r
16 // accompanying file LICENSE_1_0.txt or copy at
\r
17 // http://www.boost.org/LICENSE_1_0.txt)
\r
19 // http://www.boost.org/libs/utility/current_function.html
\r
28 inline void current_function_helper()
\r
31 #if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600))
\r
33 # define BOOST_CURRENT_FUNCTION __PRETTY_FUNCTION__
\r
35 #elif defined(__DMC__) && (__DMC__ >= 0x810)
\r
37 # define BOOST_CURRENT_FUNCTION __PRETTY_FUNCTION__
\r
39 #elif defined(__FUNCSIG__)
\r
41 # define BOOST_CURRENT_FUNCTION __FUNCSIG__
\r
43 #elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600)) || (defined(__IBMCPP__) && (__IBMCPP__ >= 500))
\r
45 # define BOOST_CURRENT_FUNCTION __FUNCTION__
\r
47 #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
\r
49 # define BOOST_CURRENT_FUNCTION __FUNC__
\r
51 #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
\r
53 # define BOOST_CURRENT_FUNCTION __func__
\r
57 # define BOOST_CURRENT_FUNCTION "(unknown)"
\r
63 } // namespace detail
\r
65 } // namespace boost
\r
67 #endif // #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED
\r