mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-21 08:22:04 +02:00
PREPROCESSOR -> PP. WHILE documented.
[SVN r12162]
This commit is contained in:
@ -8,20 +8,22 @@
|
||||
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="globals.html">File Members</a> </center>
|
||||
<hr><h1>cat.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 </td><td valign=bottom><a class="el" href="cat_8hpp.html#a0">BOOST_PREPROCESSOR_CAT</a>(L, R)</td></tr>
|
||||
<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="cat_8hpp.html#a0">BOOST_PP_CAT</a>(L, R)</td></tr>
|
||||
<tr><td> </td><td><font size=-1><em>Delays the catenation of L and R.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
|
||||
<tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="cat_8hpp.html#a1">BOOST_PREPROCESSOR_CAT</a>(L, R)</td></tr>
|
||||
<tr><td> </td><td><font size=-1><em>Obsolete. Use <a class="el" href="cat_8hpp.html#a0">BOOST_PP_CAT</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/cat.hpp">Click here to see the header.</a>
|
||||
<p>
|
||||
<hr><h2>Define Documentation</h2>
|
||||
<a name="a0" doxytag="cat.hpp::BOOST_PREPROCESSOR_CAT"></a><p>
|
||||
<a name="a0" doxytag="cat.hpp::BOOST_PP_CAT"></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_CAT</td>
|
||||
<td class="md" nowrap valign="top"> #define BOOST_PP_CAT</td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">L, <tr>
|
||||
<td></td>
|
||||
@ -49,11 +51,11 @@ Example:
|
||||
<pre><div class="fragment"><pre>
|
||||
#define STATIC_ASSERT(EXPR)\
|
||||
enum\
|
||||
{ BOOST_PREPROCESSOR_CAT(static_check_,__LINE__) = (EXPR) ? 1 : -1\
|
||||
{ BOOST_PP_CAT(static_check_,__LINE__) = (EXPR) ? 1 : -1\
|
||||
};\
|
||||
typedef char\
|
||||
BOOST_PREPROCESSOR_CAT(static_assert_,__LINE__)\
|
||||
[ BOOST_PREPROCESSOR_CAT(static_check_,__LINE__)\
|
||||
BOOST_PP_CAT(static_assert_,__LINE__)\
|
||||
[ BOOST_PP_CAT(static_check_,__LINE__)\
|
||||
]
|
||||
|
||||
// ...
|
||||
@ -73,7 +75,7 @@ The above expands to:
|
||||
];
|
||||
</pre></div></pre>
|
||||
<p>
|
||||
Using <a class="el" href="cat_8hpp.html#a0">BOOST_PREPROCESSOR_CAT</a>() above lets the preprocessor expand the __LINE__. If the above code would use the ## operator directly then __LINE__ would not be expanded and the above would expand to:
|
||||
Using <a class="el" href="cat_8hpp.html#a0">BOOST_PP_CAT</a>() above lets the PP expand the __LINE__. If the above code would use the ## operator directly then __LINE__ would not be expanded and the above would expand to:
|
||||
<p>
|
||||
<pre><div class="fragment"><pre>
|
||||
enum
|
||||
@ -86,6 +88,38 @@ Using <a class="el" href="cat_8hpp.html#a0">BOOST_PREPROCESSOR_CAT</a>() above l
|
||||
</pre></div></pre> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<a name="a1" doxytag="cat.hpp::BOOST_PREPROCESSOR_CAT"></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_CAT</td>
|
||||
<td class="md" valign="top">( </td>
|
||||
<td class="md" nowrap valign="top">L, <tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="md" nowrap>R </td>
|
||||
<td class="mdname1" valign="top" nowrap> </td>
|
||||
<td class="md" valign="top">) </td>
|
||||
<td class="md" nowrap>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing=5 cellpadding=0 border=0>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<p>
|
||||
Obsolete. Use <a class="el" href="cat_8hpp.html#a0">BOOST_PP_CAT</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
|
||||
|
Reference in New Issue
Block a user