mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
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:
parent
446fa129d4
commit
39868aba46
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
*.o
|
||||
BC635Clock_test
|
||||
TPROCTEClock_test
|
||||
GetTimeOfDayClock_test
|
||||
|
Loading…
Reference in New Issue
Block a user