Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Action_impl_python.hpp

    r6ba9ba rd628da  
    1818#include <boost/preprocessor/facilities/expand.hpp>
    1919#include <boost/preprocessor/iteration/local.hpp>
    20 #include <boost/preprocessor/list/adt.hpp>
    2120#include <boost/preprocessor/punctuation/comma_if.hpp>
    22 #include <boost/preprocessor/punctuation/paren.hpp>
     21
     22#define NODEFAULT ""
    2323
    2424// some derived names: if CATEGORY is not given, we don't prefix with it
     
    3232#define PARAMS BOOST_PP_CAT(ACTIONNAME, Parameters)
    3333#endif
    34 
    35 // for paramdefaults entries
    36 #define PARAM_DEFAULT(x) \
    37     (x, BOOST_PP_NIL)
    3834
    3935// check if no lists given
     
    6561  BOOST_PP_SEQ_ELEM(n, STRINGLIST) \
    6662  ) \
    67   = \
    68   BOOST_PP_IF( \
    69       BOOST_PP_NOT( BOOST_PP_LIST_IS_NIL( BOOST_PP_SEQ_ELEM(n, paramdefaults) ) ), \
    70       toString BOOST_PP_LPAREN() \
    71           BOOST_PP_LIST_FIRST( BOOST_PP_SEQ_ELEM(n, DEFAULTLIST) ) \
    72       BOOST_PP_RPAREN(), \
    73       std::string("") \
    74   )
     63  = BOOST_PP_SEQ_ELEM(n, DEFAULTLIST)
    7564
    7665// print a list of comma-separated list, i.e. (,)arg("Action")
     
    153142#undef PARAMS
    154143#undef MAXPARAMTYPES
    155 #undef PARAM_DEFAULT
    156144
    157145#undef help_print
Note: See TracChangeset for help on using the changeset viewer.