added support for unnamed C++ enum members

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5806 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-03-31 02:09:55 +00:00
commit a8ab65b69e

View file

@ -8,7 +8,7 @@
%define PYVAL_IN_TYPEMAP(as_meth,pyfrag,...)
%typemap(in,fragment=pyfrag) __VA_ARGS__
"$1 = ($1_type) as_meth($input);
"$1 = ($ltype)as_meth($input);
if (PyErr_Occurred()) SWIG_fail;";
%typemap(in,fragment=pyfrag) const __VA_ARGS__ & ($basetype temp)
"temp = ($basetype) as_meth($input);