summaryrefslogtreecommitdiff
path: root/Lib/swig.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/swig.swg')
-rw-r--r--Lib/swig.swg5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/swig.swg b/Lib/swig.swg
index ec903533c..e7c01823e 100644
--- a/Lib/swig.swg
+++ b/Lib/swig.swg
@@ -77,7 +77,7 @@
#define %clearoldnodefault %feature("oldnodefault","")
/* the %exception directive */
-#ifdef SWIGCSHARP
+#if defined(SWIGCSHARP) || defined(SWIGD)
#define %exception %feature("except", canthrow=1)
#else
#define %exception %feature("except")
@@ -95,7 +95,7 @@
to set/get variable methods. You don't need to use the
%allowexception directive when using %exceptionvar.
*/
-#ifdef SWIGCSHARP
+#if defined(SWIGCSHARP) || defined(SWIGD)
#define %exceptionvar %feature("exceptvar", canthrow=1)
#else
#define %exceptionvar %feature("exceptvar")
@@ -269,7 +269,6 @@ static int NAME(TYPE x) {
%define %$isaccess "match"="access" %enddef
%define %$isclass "match"="class","notmatch$template$templatetype"="class" %enddef
%define %$isextend "match"="extend" %enddef
-%define %$isextend "match"="extend" %enddef
%define %$isconstructor "match"="constructor" %enddef
%define %$isdestructor "match"="destructor" %enddef
%define %$isnamespace "match"="namespace" %enddef