1 #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED
2 #define BOOST_CURRENT_FUNCTION_HPP_INCLUDED
9 // boost/current_function.hpp - BOOST_CURRENT_FUNCTION
11 // Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
13 // Permission to copy, use, modify, sell and distribute this software
14 // is granted provided this copyright notice appears in all copies.
15 // This software is provided "as is" without express or implied
16 // warranty, and with no claim as to its suitability for any purpose.
25 inline void current_function_helper()
30 # define BOOST_CURRENT_FUNCTION __PRETTY_FUNCTION__
32 #elif defined(__FUNCSIG__)
34 # define BOOST_CURRENT_FUNCTION __FUNCSIG__
36 #elif defined(__BORLANDC__)
38 # define BOOST_CURRENT_FUNCTION __FUNC__
40 #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
42 # define BOOST_CURRENT_FUNCTION __func__
46 # define BOOST_CURRENT_FUNCTION "(unknown)"
56 #endif // #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED