]> git.lyx.org Git - lyx.git/blob - boost/boost/current_function.hpp
update boost to pre-1.30.0
[lyx.git] / boost / boost / current_function.hpp
1 #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED
2 #define BOOST_CURRENT_FUNCTION_HPP_INCLUDED
3
4 #if _MSC_VER >= 1020
5 #pragma once
6 #endif
7
8 //
9 //  boost/current_function.hpp - BOOST_CURRENT_FUNCTION
10 //
11 //  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
12 //
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.
17 //
18 //  http://www.boost.org/libs/utility/current_function.html
19 //
20
21 namespace boost
22 {
23
24 namespace detail
25 {
26
27 inline void current_function_helper()
28 {
29
30 #if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000))
31
32 # define BOOST_CURRENT_FUNCTION __PRETTY_FUNCTION__
33
34 #elif defined(__FUNCSIG__)
35
36 # define BOOST_CURRENT_FUNCTION __FUNCSIG__
37
38 #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
39
40 # define BOOST_CURRENT_FUNCTION __FUNC__
41
42 #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
43
44 # define BOOST_CURRENT_FUNCTION __func__
45
46 #else
47
48 # define BOOST_CURRENT_FUNCTION "(unknown)"
49
50 #endif
51
52 }
53
54 } // namespace detail
55
56 } // namespace boost
57
58 #endif // #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED