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:
parent
4c336ab5ac
commit
0c499a93cf
2 changed files with 5 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue