NDDEM
Preprocessor_macros.h
Go to the documentation of this file.
1 #include <boost/preprocessor/arithmetic/inc.hpp>
2 #include <boost/preprocessor/comparison/not_equal.hpp>
3 #include <boost/preprocessor/repetition/for.hpp>
4 #include <boost/preprocessor/tuple/elem.hpp>
5 
6 #define PRED(r, state) \
7  BOOST_PP_NOT_EQUAL( \
8  BOOST_PP_TUPLE_ELEM(2, 0, state), \
9  BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(2, 1, state)) \
10  ) \
11 
12 #define OP(r, state) \
13  ( \
14  BOOST_PP_INC(BOOST_PP_TUPLE_ELEM(2, 0, state)), \
15  BOOST_PP_TUPLE_ELEM(2, 1, state) \
16  ) \
17 
18 #define XSTR(a) STR(a)
19 #define STR(a) #a