From 1396dffb68d45e5bef7c68916577b875282bde6f Mon Sep 17 00:00:00 2001 From: John Lenz Date: Sun, 25 Mar 2007 17:40:56 +0000 Subject: [PATCH] add SWIG_fail to SWIG_expcetion macro git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9658 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 4 ++++ Lib/perl5/exception.i | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.current b/CHANGES.current index 46e4c5d46..1fc21375b 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,10 @@ Version 1.3.32 (in progress) ============================ +03/25/2007: wuzzeb (John Lenz) + [perl5] Add SWIG_fail to the SWIG_exception macro. Fixes a few problems reported + on the mailing list. + 03/23/2007: wsfulton String copying patch from Josh Cherry reducing memory consumption by about 25%. diff --git a/Lib/perl5/exception.i b/Lib/perl5/exception.i index 1e80d96d5..b786f25e2 100644 --- a/Lib/perl5/exception.i +++ b/Lib/perl5/exception.i @@ -1,5 +1,5 @@ %include %insert("runtime") { - %define_as(SWIG_exception(code, msg), %block(%error(code, msg);)) + %define_as(SWIG_exception(code, msg), %block(%error(code, msg); SWIG_fail; )) }