]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/limits.hpp
update boost
[lyx.git] / boost / boost / preprocessor / limits.hpp
1 #ifndef BOOST_PREPROCESSOR_LIMITS_HPP
2 #define BOOST_PREPROCESSOR_LIMITS_HPP
3
4 /* Copyright (C) 2001
5  * Housemarque Oy
6  * http://www.housemarque.com
7  *
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.
12  *
13  * See http://www.boost.org for most recent version.
14  */
15
16 /** <p>Expands to the number of dimensions of repeat supported by the
17 library.</p>
18
19 <p>This concerns the repetition primitives (BOOST_PP_ENUM(),
20 BOOST_PP_REPEAT() and BOOST_PP_REPEAT_FROM_TO()).</p>
21 */
22 #define BOOST_PP_LIMIT_DIM 3
23
24 /** <p>Expands to the maximum straight numeric literal supported by the
25 library.</p>
26
27 <p>This is also the limit of the repetition primitives (BOOST_PP_ENUM(),
28 BOOST_PP_REPEAT() and BOOST_PP_REPEAT_FROM_TO()).</p>
29
30 <h3>Note</h3>
31 <ul>
32   <li>Only decimal integer literals in the range [0, BOOST_PP_LIMIT_MAG]
33       are supported.</li>
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>
38 </ul>
39 */
40 #define BOOST_PP_LIMIT_MAG 128
41
42 /** <p>Expands to the maximum tuple size supported by the library.</p> */
43 #define BOOST_PP_LIMIT_TUPLE 32
44 #endif