Automatic recursion

[SVN r14100]
This commit is contained in:
Vesa Karvonen
2002-06-07 13:04:18 +00:00
parent a18d5f79fc
commit 9f9048e805
82 changed files with 971 additions and 869 deletions

View File

@ -15,7 +15,6 @@
*/
#include <boost/preprocessor/repeat.hpp>
#include <boost/preprocessor/repeat_2nd.hpp>
/** Repeats the macro M(X,Y,P) for X = [0,W[ and Y = [0,H[.
@ -28,13 +27,13 @@ In other words, expands to the sequence:
M( 0,H-1, P) M( 1,H-1, P) ... M(W-1,H-1, P)
\endverbatim</PRE>
Uses BOOST_PP_REPEAT() and BOOST_PP_REPEAT_2ND().
Uses BOOST_PP_REPEAT().
*/
#define REPEAT_2D(W,H,M,P)\
/* Here we must use BOOST_PP_REPEAT_2ND(), because\
* we use BOOST_PP_REPEAT() in REPEAT_2D_ROW().\
/* Here we can simply use BOOST_PP_REPEAT(), because\
* it implements automatic recursion.\
*/\
BOOST_PP_REPEAT_2ND\
BOOST_PP_REPEAT\
( H\
, REPEAT_2D_ROW\
, (W,M,P)\