1 #ifndef BOOST_PREPROCESSOR_LIMITS_HPP
2 #define BOOST_PREPROCESSOR_LIMITS_HPP
6 * http://www.housemarque.com
8 * Permission to copy, use, modify, sell and distribute this software is
9 * granted provided this copyright notice appears in all copies. This
10 * software is provided "as is" without express or implied warranty, and
11 * with no claim as to its suitability for any purpose.
13 * See http://www.boost.org for most recent version.
16 /** <p>Expands to the number of dimensions of repeat supported by the
19 <p>The repeat macros are named BOOST_PP_REPEAT(), BOOST_PP_REPEAT_2ND(),
20 BOOST_PP_REPEAT_3RD(), ...</p>
22 #define BOOST_PP_LIMIT_DIM 3
24 /** <p>Expands to the maximum straight numeric literal supported by the
27 <p>This is also the limit of the repetition primitives (BOOST_PP_ENUM family
28 and BOOST_PP_REPEAT family).</p>
32 <li>Only decimal integer literals in the range [0, BOOST_PP_LIMIT_MAG]
34 <li>All arithmetic operations (BOOST_PP_ADD(), BOOST_PP_SUB(),
35 BOOST_PP_MUL(), BOOST_PP_DIV()) use saturation arithmetic.</li>
36 <li>The maximum repetition count supported by the library may not be reached
37 due to compiler limitations.</li>
40 #define BOOST_PP_LIMIT_MAG 128
42 /** <p>Expands to the maximum tuple size supported by the library.</p> */
43 #define BOOST_PP_LIMIT_TUPLE 16
45 /* <p>Obsolete. Use BOOST_PP_LIMIT_DIM.</p> */
46 #define BOOST_PREPROCESSOR_LIMIT_DIM BOOST_PP_LIMIT_DIM
48 /* <p>Obsolete. Use BOOST_PP_LIMIT_MAG.</p> */
49 #define BOOST_PREPROCESSOR_LIMIT_MAG BOOST_PP_LIMIT_MAG
51 /* <p>Obsolete. Use BOOST_PP_LIMIT_TUPLE.</p> */
52 #define BOOST_PREPROCESSOR_LIMIT_TUPLE BOOST_PP_LIMIT_TUPLE