1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
4 <title>Boost: current_function.hpp documentation
</title>
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
7 <body bgcolor=
"white" style=
"MARGIN-LEFT: 5%; MARGIN-RIGHT: 5%">
8 <table border=
"0" width=
"100%">
10 <td width=
"277"><a href=
"../../index.htm"> <img src=
"../../boost.png" alt=
"boost.png (6897 bytes)" width=
"277" height=
"86" border=
"0" /></a>
13 <h1>current_function.hpp
</h1>
17 <td colspan=
"2" height=
"64"> </td>
21 The header
<code><boost/current_function.hpp
></code> defines a single
22 macro,
<code>BOOST_CURRENT_FUNCTION
</code>, similar to the
23 C99 predefined identifier
<code>__func__
</code>.
25 <p><code>BOOST_CURRENT_FUNCTION
</code> expands to a string literal containing
26 the (fully qualified, if possible) name of the enclosing function. If there is
27 no enclosing function, the behavior is undefined.
</p>
28 <p>Some compilers do not provide a way to obtain the name of the current enclosing
29 function. On such compilers,
<code>BOOST_CURRENT_FUNCTION
</code> expands to
30 <code>"(unknown)
"</code>.
</p>
33 <small>Copyright ©
2002 by Peter Dimov. Distributed under the Boost Software License, Version
34 1.0. See accompanying file
<a href=
"../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
35 copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt
</a>.
</small></p>