mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-16 14:02:17 +02:00
Minor changes.
[SVN r12206]
This commit is contained in:
@ -17,11 +17,11 @@
|
|||||||
<a href="../../../../boost/preprocessor/assert_msg.hpp">Click here to see the header.</a>
|
<a href="../../../../boost/preprocessor/assert_msg.hpp">Click here to see the header.</a>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <boost/preprocessor/identity.hpp>
|
#include <boost/preprocessor/empty.hpp>
|
||||||
#include <boost/preprocessor/if.hpp>
|
#include <boost/preprocessor/if.hpp>
|
||||||
|
|
||||||
//! Expands to nothing if C != 0 and to MSG if C == 0.
|
//! Expands to nothing if C != 0 and to MSG if C == 0.
|
||||||
#define BOOST_PP_ASSERT_MSG(C,MSG) BOOST_PP_IF(C,BOOST_PP_EMPTY,BOOST_PP_IDENTITY(MSG))()
|
#define BOOST_PP_ASSERT_MSG(C,MSG) BOOST_PP_IF(C,BOOST_PP_EMPTY,MSG BOOST_PP_EMPTY)()
|
||||||
|
|
||||||
//! Obsolete. Use BOOST_PP_ASSERT_MSG().
|
//! Obsolete. Use BOOST_PP_ASSERT_MSG().
|
||||||
#define BOOST_PREPROCESSOR_ASSERT_MSG(C,MSG) BOOST_PP_ASSERT_MSG(C,MSG)
|
#define BOOST_PREPROCESSOR_ASSERT_MSG(C,MSG) BOOST_PP_ASSERT_MSG(C,MSG)
|
||||||
|
@ -37,18 +37,14 @@ Example:
|
|||||||
BOOST_PP_TUPLE_ELEM(2,1,(A,B))
|
BOOST_PP_TUPLE_ELEM(2,1,(A,B))
|
||||||
\endverbatim</PRE>
|
\endverbatim</PRE>
|
||||||
|
|
||||||
The above expands to:
|
The above expands to B.
|
||||||
|
|
||||||
<PRE>\verbatim
|
|
||||||
B
|
|
||||||
\endverbatim</PRE>
|
|
||||||
|
|
||||||
See also BOOST_PP_LIMIT_TUPLE.
|
See also BOOST_PP_LIMIT_TUPLE.
|
||||||
*/
|
*/
|
||||||
#define BOOST_PP_TUPLE_ELEM(N,I,T) BOOST_PP_TUPLE_ELEM_DELAY(N,I,T)
|
#define BOOST_PP_TUPLE_ELEM(N,I,T) BOOST_PP_TUPLE_ELEM_DELAY(N,I,T)
|
||||||
|
|
||||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
||||||
#if defined(__MWERKS__) && __MWERKS__ <= 0x2406
|
#if !defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406
|
||||||
// This is a workaround for a CodeWarrior PP bug. Strictly speaking
|
// This is a workaround for a CodeWarrior PP bug. Strictly speaking
|
||||||
// this workaround invokes undefined behavior, but it works as desired.
|
// this workaround invokes undefined behavior, but it works as desired.
|
||||||
# define BOOST_PP_TUPLE_ELEM_DELAY(N,I,T) BOOST_PP_TUPLE##N##_ELEM##I##T
|
# define BOOST_PP_TUPLE_ELEM_DELAY(N,I,T) BOOST_PP_TUPLE##N##_ELEM##I##T
|
||||||
|
@ -84,8 +84,8 @@ BOOST_PP_MUL().
|
|||||||
// #1) The state is a 3-tuple. After the iteration is finished, the first
|
// #1) The state is a 3-tuple. After the iteration is finished, the first
|
||||||
// element of the tuple is the result.
|
// element of the tuple is the result.
|
||||||
//
|
//
|
||||||
// #2) The WHILE primitive is "invoked" directly. BOOST_PP_WHILE(D,...) can't
|
// #2) The WHILE primitive is "invoked" directly. BOOST_PP_WHILE(D,...)
|
||||||
// be used because it would not be expanded by the C/C++ preprocessor.
|
// can't be used because it would not be expanded by the C preprocessor.
|
||||||
//
|
//
|
||||||
// #3) ???_C is the condition and ???_F is the iteration function.
|
// #3) ???_C is the condition and ???_F is the iteration function.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user