Functions with enumerated default arguments bad

After digging around the SWIG issues database I found a feature
compactdefaultargs that creates a call to functions with default
arguments like it did before.  The important part is that the
code runs.

refs #176
This commit is contained in:
Alex Lin 2016-02-04 15:54:12 -06:00
parent 8529bd8648
commit c9d5be4b95

View File

@ -10,6 +10,12 @@
%include "trick/swig/cast_as.i" %include "trick/swig/cast_as.i"
%include "trick/swig/swig_int_typemap.i" %include "trick/swig/swig_int_typemap.i"
/*
compactdefaultargs fixes a bug with enumeration default arguments not being
recogized in function calls starting in swig 3.0.x
*/
%feature("compactdefaultargs") ;
/* SWIG can't understand GNU C keyword "__attribute__" */ /* SWIG can't understand GNU C keyword "__attribute__" */
#ifdef SWIG #ifdef SWIG
#define __attribute__(x) #define __attribute__(x)