[12] | 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"> |
---|
| 11 | <img src="../../boost.png" alt="boost.png (6897 bytes)" width="277" height="86"> |
---|
| 12 | </td> |
---|
| 13 | <td align="middle"> |
---|
| 14 | <h1>current_function.hpp</h1> |
---|
| 15 | </td> |
---|
| 16 | </tr> |
---|
| 17 | <tr> |
---|
| 18 | <td colspan="2" height="64"> </td> |
---|
| 19 | </tr> |
---|
| 20 | </table> |
---|
| 21 | <p> |
---|
| 22 | The header <STRONG><boost/current_function.hpp></STRONG> defines a single |
---|
| 23 | macro, <STRONG>BOOST_CURRENT_FUNCTION</STRONG>,<STRONG> </STRONG>similar to the |
---|
| 24 | C99 predefined identifier <STRONG>__func__</STRONG>. |
---|
| 25 | </p> |
---|
| 26 | <P><STRONG>BOOST_CURRENT_FUNCTION</STRONG> expands to a string literal containing |
---|
| 27 | the (fully qualified, if possible) name of the enclosing function. If there is |
---|
| 28 | no enclosing function, the behavior is undefined.</P> |
---|
| 29 | <p>Some compilers do not provide a way to obtain the name of the current enclosing |
---|
| 30 | function. On such compilers, the string literal has an unspecified value.</p> |
---|
| 31 | <p> |
---|
| 32 | <br> |
---|
| 33 | <small>Copyright © 2002 by Peter Dimov. Permission to copy, use, modify, sell and |
---|
| 34 | distribute this document is granted provided this copyright notice appears in |
---|
| 35 | all copies. This document is provided "as is" without express or implied |
---|
| 36 | warranty, and with no claim as to its suitability for any purpose.</small></p> |
---|
| 37 | </body> |
---|
| 38 | </html> |
---|