From 0c499a93cf6fdc5f6e83acd92a2fb168e739f53f Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 15 Jan 2006 02:10:15 +0000 Subject: [PATCH] add guards for wrong inclusions git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8449 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/exception.i | 4 ++++ Lib/std_except.i | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/exception.i b/Lib/exception.i index d81f76cbe..5e7b776c4 100644 --- a/Lib/exception.i +++ b/Lib/exception.i @@ -5,6 +5,10 @@ // // This SWIG library file provides language independent exception handling +#if defined(SWIGPERL) || defined(SWIGTCL) || defined(SWIGRUBY) || defined(SWIGPYTHON) +#error "This version of exception.i should not be used" +#endif + %insert("runtime") "swigerrors.swg" diff --git a/Lib/std_except.i b/Lib/std_except.i index 338cc8d3c..5fa8e9dd0 100644 --- a/Lib/std_except.i +++ b/Lib/std_except.i @@ -17,7 +17,7 @@ // a new std_except.i file in the target library directory. // -#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGGUILE) +#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGGUILE) || defined(SWIGPERL) || defined(SWIGTCL) || defined(SWIGRUBY) || defined(SWIGPYTHON) #error "This version of std_except.i should not be used" #endif