Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Action_impl_python.hpp

    r0c8056 r0c74aa  
    2121#include <boost/preprocessor/punctuation/comma_if.hpp>
    2222#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>
    2326
    2427// some derived names: if CATEGORY is not given, we don't prefix with it
     
    4851BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(MAXPARAMTYPES, BOOST_PP_SEQ_SIZE(paramdescriptions)),\
    4952  ERROR: There are not the same number of "paramtokens" and "paramdescriptions" in: __FILE__ \
     53)
     54#endif
     55#ifdef paramreferences
     56BOOST_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
     62BOOST_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__ \
    5064)
    5165#endif
     
    8397// print a list of type ref followed, i.e. "int i, double position"
    8498#define type_list(z,n,TYPELIST, VARLIST) \
    85   BOOST_PP_COMMA_IF(n)\
     99  BOOST_PP_COMMA_IF(n) \
    86100  BOOST_PP_SEQ_ELEM(n, TYPELIST) \
    87101  BOOST_PP_SEQ_ELEM(n, VARLIST)
     
    90104#define value_print(z, n, container, prefix) \
    91105  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) \
    95109  );
    96110
     
    110124BOOST_PP_CAT( COMMAND, _stringargs)(
    111125#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)
    113127#define BOOST_PP_LOCAL_LIMITS  (0, MAXPARAMTYPES-1)
    114128#include BOOST_PP_LOCAL_ITERATE()
Note: See TracChangeset for help on using the changeset viewer.