add guards for wrong inclusions

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-15 02:10:15 +00:00
commit 0c499a93cf
2 changed files with 5 additions and 1 deletions

View file

@ -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"

View file

@ -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