From bb4946d2fe2ba25c1d32f5e85bc330291f5e33bd Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 31 Oct 2005 09:51:11 +0000 Subject: [PATCH] add missing SWIG_fail git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7764 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/pytypemaps.swg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SWIG/Lib/python/pytypemaps.swg b/SWIG/Lib/python/pytypemaps.swg index c32c87c67..74761e16b 100644 --- a/SWIG/Lib/python/pytypemaps.swg +++ b/SWIG/Lib/python/pytypemaps.swg @@ -57,7 +57,8 @@ %define %raise(obj, type, desc) PyObject *_obj = obj; PyErr_SetObject(SWIG_Python_ExceptionType(desc), _obj); - Py_DECREF(_obj) %enddef + Py_DECREF(_obj); + SWIG_fail %enddef /* Include the unified typemap library */