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:
parent
dafc4dbdfc
commit
1122c39ec4
5 changed files with 8 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
%{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
*/
|
||||
|
||||
#define SWIGUTL SWIGUTL
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Language specialization section.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue