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