]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | <html> | |
3 | <head> | |
4 | <title>Boost: current_function.hpp documentation</title> | |
5 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
6 | </head> | |
7 | <body bgcolor="white" style="MARGIN-LEFT: 5%; MARGIN-RIGHT: 5%"> | |
8 | <table border="0" width="100%"> | |
9 | <tr> | |
10 | <td width="277"><a href="../../index.htm"> <img src="../../boost.png" alt="boost.png (6897 bytes)" width="277" height="86" border="0" /></a> | |
11 | </td> | |
12 | <td align="center"> | |
13 | <h1>current_function.hpp</h1> | |
14 | </td> | |
15 | </tr> | |
16 | <tr> | |
17 | <td colspan="2" height="64"> </td> | |
18 | </tr> | |
19 | </table> | |
20 | <p> | |
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>. | |
24 | </p> | |
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> | |
31 | <hr /> | |
32 | <p> | |
33 |