os/ossrv/ossrv_pub/boost_apis/boost/current_function.hpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200 (2014-06-10)
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
#ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED
sl@0
     2
#define BOOST_CURRENT_FUNCTION_HPP_INCLUDED
sl@0
     3
sl@0
     4
// MS compatible compilers support #pragma once
sl@0
     5
sl@0
     6
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
sl@0
     7
# pragma once
sl@0
     8
#endif
sl@0
     9
sl@0
    10
//
sl@0
    11
//  boost/current_function.hpp - BOOST_CURRENT_FUNCTION
sl@0
    12
//
sl@0
    13
//  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
sl@0
    14
//
sl@0
    15
// Distributed under the Boost Software License, Version 1.0. (See
sl@0
    16
// accompanying file LICENSE_1_0.txt or copy at
sl@0
    17
// http://www.boost.org/LICENSE_1_0.txt)
sl@0
    18
//
sl@0
    19
//  http://www.boost.org/libs/utility/current_function.html
sl@0
    20
//
sl@0
    21
sl@0
    22
namespace boost
sl@0
    23
{
sl@0
    24
sl@0
    25
namespace detail
sl@0
    26
{
sl@0
    27
sl@0
    28
inline void current_function_helper()
sl@0
    29
{
sl@0
    30
sl@0
    31
#if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600))
sl@0
    32
sl@0
    33
# define BOOST_CURRENT_FUNCTION __PRETTY_FUNCTION__
sl@0
    34
sl@0
    35
#elif defined(__FUNCSIG__)
sl@0
    36
sl@0
    37
# define BOOST_CURRENT_FUNCTION __FUNCSIG__
sl@0
    38
sl@0
    39
#elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600)) || (defined(__IBMCPP__) && (__IBMCPP__ >= 500))
sl@0
    40
sl@0
    41
# define BOOST_CURRENT_FUNCTION __FUNCTION__
sl@0
    42
sl@0
    43
#elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
sl@0
    44
sl@0
    45
# define BOOST_CURRENT_FUNCTION __FUNC__
sl@0
    46
sl@0
    47
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
sl@0
    48
sl@0
    49
# define BOOST_CURRENT_FUNCTION __func__
sl@0
    50
sl@0
    51
#else
sl@0
    52
sl@0
    53
# define BOOST_CURRENT_FUNCTION "(unknown)"
sl@0
    54
sl@0
    55
#endif
sl@0
    56
sl@0
    57
}
sl@0
    58
sl@0
    59
} // namespace detail
sl@0
    60
sl@0
    61
} // namespace boost
sl@0
    62
sl@0
    63
#endif // #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED