mirror of
https://github.com/nasa/trick.git
synced 2025-01-07 05:38:46 +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
f4950b736b
commit
c6614fff75
@ -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