PREPROCESSOR -> PP. WHILE documented.

[SVN r12162]
This commit is contained in:
Vesa Karvonen
2001-12-28 11:06:53 +00:00
parent 5991b00456
commit d8b52a3a42
90 changed files with 3441 additions and 1889 deletions

View File

@ -8,20 +8,22 @@
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>stringize.hpp File Reference</h1><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="stringize_8hpp.html#a0">BOOST_PREPROCESSOR_STRINGIZE</a>(E)</td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="stringize_8hpp.html#a0">BOOST_PP_STRINGIZE</a>(E)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Delays the stringization of E.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>#define&nbsp;</td><td valign=bottom><a class="el" href="stringize_8hpp.html#a1">BOOST_PREPROCESSOR_STRINGIZE</a>(E)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Obsolete. Use <a class="el" href="stringize_8hpp.html#a0">BOOST_PP_STRINGIZE</a>().</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a href="../../../../boost/preprocessor/stringize.hpp">Click here to see the header.</a>
<p>
<hr><h2>Define Documentation</h2>
<a name="a0" doxytag="stringize.hpp::BOOST_PREPROCESSOR_STRINGIZE"></a><p>
<a name="a0" doxytag="stringize.hpp::BOOST_PP_STRINGIZE"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define BOOST_PREPROCESSOR_STRINGIZE</td>
<td class="md" nowrap valign="top"> #define BOOST_PP_STRINGIZE</td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">E&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
@ -45,7 +47,7 @@ Example:
<p>
<pre><div class="fragment"><pre>
#define NOTE(STR)\
message(__FILE__ "(" BOOST_PREPROCESSOR_STRINGIZE(__LINE__) ") : " STR)
message(__FILE__ "(" BOOST_PP_STRINGIZE(__LINE__) ") : " STR)
// ...
@ -58,13 +60,42 @@ The above expands to:
#pragma message("examples.cpp" "(" "20" ") : " "TBD!")
</pre></div></pre>
<p>
The use of <a class="el" href="stringize_8hpp.html#a0">BOOST_PREPROCESSOR_STRINGIZE</a>() above lets the preprocessor expand the __LINE__ before stringizing it. If # would be used directly, the code would expand to:
The use of <a class="el" href="stringize_8hpp.html#a0">BOOST_PP_STRINGIZE</a>() above lets the PP expand the __LINE__ before stringizing it. If # would be used directly, the code would expand to:
<p>
<pre><div class="fragment"><pre>
#pragma message("examples.cpp" "(" "__LINE__" ") : " "TBD!")
</pre></div></pre> </td>
</tr>
</table>
<a name="a1" doxytag="stringize.hpp::BOOST_PREPROCESSOR_STRINGIZE"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define BOOST_PREPROCESSOR_STRINGIZE</td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">E&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Obsolete. Use <a class="el" href="stringize_8hpp.html#a0">BOOST_PP_STRINGIZE</a>().
<p>
</td>
</tr>
</table>
<hr>
<p><EFBFBD> Copyright Housemarque Oy 2001</p>
<p>Permission to copy, use, modify, sell and distribute this document is granted