From 4166e36abb55e003f43c9147830ee018f95c5c19 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 28 Jan 2006 03:38:27 +0000 Subject: [PATCH] implement the 'allowexcept' feature for global variables git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8585 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/exception_order.i | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Examples/test-suite/exception_order.i b/Examples/test-suite/exception_order.i index a413a645f..9aa26669c 100644 --- a/Examples/test-suite/exception_order.i +++ b/Examples/test-suite/exception_order.i @@ -34,7 +34,14 @@ %catches(E1,E2*,ET,ET,...) A::barfoo(int i); +%allowexception efoovar; +%allowexception A::efoovar; + %inline %{ + int efoovar; + int foovar; + const int cfoovar = 1; + struct E1 { }; @@ -54,6 +61,11 @@ struct A { + static int sfoovar; + static const int csfoovar = 1; + int foovar; + int efoovar; + /* caught by the user's throw definition */ int foo() throw(E1) { @@ -90,6 +102,7 @@ return 0; } }; + int A::sfoovar = 1; %} %template(ET_i) ET;