fix anon enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
da6e5673e8
commit
9c6a029e75
4 changed files with 29 additions and 8 deletions
|
|
@ -41,14 +41,7 @@
|
|||
%include "pyptrtypes.swg"
|
||||
%include "pyprimtypes.swg"
|
||||
%include "pymisctypes.swg"
|
||||
|
||||
/* ------------------------------------------------------------
|
||||
* Enums
|
||||
* ------------------------------------------------------------ */
|
||||
%apply int { enum SWIGTYPE };
|
||||
/* this doesn't work now, you need to redefined it for each enum. */
|
||||
%apply const int& { const enum SWIGTYPE& };
|
||||
|
||||
%include "pyenum.swg"
|
||||
|
||||
/* ------------------------------------------------------------
|
||||
* Overloaded operator support
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue