Functions with enumerated default arguments cause bad python code to be generated

OK, all the previous checkins were the wrong way to fix this issue.  The SWIG
compactdefaultargs feature and the shadow feature clash for our DRBinary class.
I turn off compactdefaultargs for the DRBinary class, leaving it on for
everything else.

refs #176
This commit is contained in:
Alex Lin 2016-02-18 11:04:07 -06:00
parent 446fa129d4
commit 39868aba46
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@ PROGRAMMERS:
#include "trick/DataRecordGroup.hh"
#ifdef SWIG
%feature("compactdefaultargs","0") ;
%feature("shadow") Trick::DRBinary::DRBinary(std::string in_name) %{
def __init__(self, *args):
this = $action(*args)
@ -122,4 +123,8 @@ namespace Trick {
} ;
#ifdef SWIG
%feature("compactdefaultargs","1") ;
#endif
#endif

View File

@ -1,3 +1,4 @@
*.o
BC635Clock_test
TPROCTEClock_test
GetTimeOfDayClock_test