Preprocessor library is now C friendly.

[SVN r12552]
This commit is contained in:
Vesa Karvonen
2002-01-29 14:13:10 +00:00
parent 972f6222d1
commit df1244ba20
137 changed files with 1671 additions and 1272 deletions

View File

@ -6,15 +6,20 @@
<!-- Generated by Doxygen -->
<center>
<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>repeat.hpp File Reference</h1><table border=0 cellpadding=0 cellspacing=0>
<hr><h1>repeat.hpp File Reference</h1><a href="../../../../boost/preprocessor/repeat.hpp">Click here to see the header.</a>.
<a href="#_details">More...</a>
<p>
<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="repeat_8hpp.html#a0">BOOST_PP_REPEAT</a>(N, M, P)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Repeats the macro M(I,P) for I = 0 to N-1.</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="repeat_8hpp.html#a1">BOOST_PREPROCESSOR_REPEAT</a>(N, M, P)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Obsolete. Use <a class="el" href="repeat_8hpp.html#a0">BOOST_PP_REPEAT</a>().</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Obsolete.</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/repeat.hpp">Click here to see the header.</a>
<a href="../../../../boost/preprocessor/repeat.hpp">Click here to see the header.</a>.
<p>
<p>
<hr><h2>Define Documentation</h2>
<a name="a0" doxytag="repeat.hpp::BOOST_PP_REPEAT"></a><p>
@ -63,7 +68,7 @@ See BOOST_PP_LIMIT_MAG.
2D and 3D repetition are supported with the <a class="el" href="repeat__2nd_8hpp.html#a0">BOOST_PP_REPEAT_2ND</a>() and <a class="el" href="repeat__3rd_8hpp.html#a0">BOOST_PP_REPEAT_3RD</a>() macros. For example,
<p>
<pre><div class="fragment"><pre>
// A generalized macro for generating 2D arrays
A generalized macro for generating 2D arrays
#define ARRAY_2D(W,H,M,P)\
BOOST_PP_REPEAT_2ND\
( H\
@ -90,7 +95,7 @@ See BOOST_PP_LIMIT_MAG.
)\
)
// Here we use the above macro to generate something
Here we use the above macro to generate something
#define ELEM(X,Y,W,H,E) BOOST_PP_COMMA_IF(BOOST_PP_OR(X,Y)) E##_##X##_##Y
ARRAY_2D(3,4,ELEM,elem)
@ -140,9 +145,9 @@ See <a class="el" href="for_8hpp.html#a0">BOOST_PP_FOR</a>(). </td>
<td>
<p>
Obsolete. Use <a class="el" href="repeat_8hpp.html#a0">BOOST_PP_REPEAT</a>().
Obsolete.
<p>
</td>
Use <a class="el" href="repeat_8hpp.html#a0">BOOST_PP_REPEAT</a>(). </td>
</tr>
</table>
<hr>