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