- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/Action_impl_python.hpp
r0c8056 r0c74aa 21 21 #include <boost/preprocessor/punctuation/comma_if.hpp> 22 22 #include <boost/preprocessor/punctuation/paren.hpp> 23 #include <boost/preprocessor/seq/elem.hpp> 24 #include <boost/preprocessor/seq/size.hpp> 25 #include <boost/preprocessor/seq/transform.hpp> 23 26 24 27 // some derived names: if CATEGORY is not given, we don't prefix with it … … 48 51 BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(MAXPARAMTYPES, BOOST_PP_SEQ_SIZE(paramdescriptions)),\ 49 52 ERROR: There are not the same number of "paramtokens" and "paramdescriptions" in: __FILE__ \ 53 ) 54 #endif 55 #ifdef paramreferences 56 BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(MAXPARAMTYPES, BOOST_PP_SEQ_SIZE(paramreferences)),\ 57 ERROR: There are not the same number of "paramtokens" and "paramreferences" in: __FILE__ \ 58 ) 59 #endif 60 61 #ifdef paramtypes 62 BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(MAXPARAMTYPES, BOOST_PP_SEQ_SIZE(paramtypes)),\ 63 ERROR: There are not the same number of "paramtokens" and "paramtypes" in: __FILE__ \ 50 64 ) 51 65 #endif … … 83 97 // print a list of type ref followed, i.e. "int i, double position" 84 98 #define type_list(z,n,TYPELIST, VARLIST) \ 85 BOOST_PP_COMMA_IF(n) \99 BOOST_PP_COMMA_IF(n) \ 86 100 BOOST_PP_SEQ_ELEM(n, TYPELIST) \ 87 101 BOOST_PP_SEQ_ELEM(n, VARLIST) … … 90 104 #define value_print(z, n, container, prefix) \ 91 105 prefix \ 92 BOOST_PP_SEQ_ELEM(n, container) \93 .set( \94 BOOST_PP_SEQ_ELEM(n, container) \106 BOOST_PP_SEQ_ELEM(n, container) \ 107 .set( \ 108 BOOST_PP_SEQ_ELEM(n, container) \ 95 109 ); 96 110 … … 110 124 BOOST_PP_CAT( COMMAND, _stringargs)( 111 125 #if defined paramtypes 112 #define BOOST_PP_LOCAL_MACRO(n) type_list(~, n, BOOST_PP_SEQ_TRANSFORM( type2string, , paramtypes), paramreferences)126 #define BOOST_PP_LOCAL_MACRO(n) type_list(~, n, BOOST_PP_SEQ_TRANSFORM( type2string, ~, paramtypes), paramreferences) 113 127 #define BOOST_PP_LOCAL_LIMITS (0, MAXPARAMTYPES-1) 114 128 #include BOOST_PP_LOCAL_ITERATE()
Note:
See TracChangeset
for help on using the changeset viewer.