add the SWIGUTL macro to identify a language using the Unified Typemap Library, and using it around

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-28 17:35:22 +00:00
commit 1122c39ec4
5 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,7 @@
%module exception_order
%warnfilter(SWIGWARN_RUBY_WRONG_NAME);
%include "exception.i"
%{
@ -13,7 +15,7 @@
user's throw declarations.
*/
#if defined(SWIGPERL) || defined(SWIGRUBY)
#if defined(SWIGUTL)
%exception {
try {
$action

View file

@ -3,9 +3,9 @@
// Check typemap name matching rules for variables
// Some of these are using qualified names, which is not right... the test will be adjusted as these get fixed
#if defined(SWIGPYTHON) || defined(SWIGRUBY)
#if defined(SWIGUTL)
%{
#define TYPEMAP_VARIABLES_FAIL goto fail;
#define TYPEMAP_VARIABLES_FAIL SWIG_fail;
%}
#else
%{

View file

@ -5,7 +5,7 @@
//
// This SWIG library file provides language independent exception handling
#if defined(SWIGPERL) || defined(SWIGTCL) || defined(SWIGRUBY) || defined(SWIGPYTHON)
#if defined(SWIGUTL)
#error "This version of exception.i should not be used"
#endif

View file

@ -17,7 +17,7 @@
// a new std_except.i file in the target library directory.
//
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGGUILE) || defined(SWIGPERL) || defined(SWIGTCL) || defined(SWIGRUBY) || defined(SWIGPYTHON)
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGGUILE) || defined(SWIGUTL)
#error "This version of std_except.i should not be used"
#endif

View file

@ -38,6 +38,7 @@
*/
#define SWIGUTL SWIGUTL
/* -----------------------------------------------------------------------------
* Language specialization section.