From a941c3452438ec54baa2d7ca3f521395726efab8 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 31 Mar 2004 02:09:55 +0000 Subject: [PATCH] added support for unnamed C++ enum members git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5806 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/pyvaltypes.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Lib/python/pyvaltypes.swg b/SWIG/Lib/python/pyvaltypes.swg index 3331eda0f..e2feaead3 100644 --- a/SWIG/Lib/python/pyvaltypes.swg +++ b/SWIG/Lib/python/pyvaltypes.swg @@ -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);