mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
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:
parent
8529bd8648
commit
c9d5be4b95
@ -10,6 +10,12 @@
|
||||
%include "trick/swig/cast_as.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__" */
|
||||
#ifdef SWIG
|
||||
#define __attribute__(x)
|
||||
|
Loading…
Reference in New Issue
Block a user