sl@0: #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED sl@0: #define BOOST_CURRENT_FUNCTION_HPP_INCLUDED sl@0: sl@0: // MS compatible compilers support #pragma once sl@0: sl@0: #if defined(_MSC_VER) && (_MSC_VER >= 1020) sl@0: # pragma once sl@0: #endif sl@0: sl@0: // sl@0: // boost/current_function.hpp - BOOST_CURRENT_FUNCTION sl@0: // sl@0: // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. sl@0: // sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: // sl@0: // http://www.boost.org/libs/utility/current_function.html sl@0: // sl@0: sl@0: namespace boost sl@0: { sl@0: sl@0: namespace detail sl@0: { sl@0: sl@0: inline void current_function_helper() sl@0: { sl@0: sl@0: #if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) sl@0: sl@0: # define BOOST_CURRENT_FUNCTION __PRETTY_FUNCTION__ sl@0: sl@0: #elif defined(__FUNCSIG__) sl@0: sl@0: # define BOOST_CURRENT_FUNCTION __FUNCSIG__ sl@0: sl@0: #elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600)) || (defined(__IBMCPP__) && (__IBMCPP__ >= 500)) sl@0: sl@0: # define BOOST_CURRENT_FUNCTION __FUNCTION__ sl@0: sl@0: #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550) sl@0: sl@0: # define BOOST_CURRENT_FUNCTION __FUNC__ sl@0: sl@0: #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901) sl@0: sl@0: # define BOOST_CURRENT_FUNCTION __func__ sl@0: sl@0: #else sl@0: sl@0: # define BOOST_CURRENT_FUNCTION "(unknown)" sl@0: sl@0: #endif sl@0: sl@0: } sl@0: sl@0: } // namespace detail sl@0: sl@0: } // namespace boost sl@0: sl@0: #endif // #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED