Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Actions/Action_impl_python.hpp

    r0c74aa r0c8056  
    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>
    2623
    2724// some derived names: if CATEGORY is not given, we don't prefix with it
     
    5148BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(MAXPARAMTYPES, BOOST_PP_SEQ_SIZE(paramdescriptions)),\
    5249  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__ \
    6450)
    6551#endif
     
    9783// print a list of type ref followed, i.e. "int i, double position"
    9884#define type_list(z,n,TYPELIST, VARLIST) \
    99   BOOST_PP_COMMA_IF(n) \
     85  BOOST_PP_COMMA_IF(n)\
    10086  BOOST_PP_SEQ_ELEM(n, TYPELIST) \
    10187  BOOST_PP_SEQ_ELEM(n, VARLIST)
     
    10490#define value_print(z, n, container, prefix) \
    10591  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)\
    10995  );
    11096
     
    124110BOOST_PP_CAT( COMMAND, _stringargs)(
    125111#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)
    127113#define BOOST_PP_LOCAL_LIMITS  (0, MAXPARAMTYPES-1)
    128114#include BOOST_PP_LOCAL_ITERATE()
Note: See TracChangeset for help on using the changeset viewer.