use internal SWIG_exception_fail, let SWIG_exception as in 1.3.27

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-14 21:23:36 +00:00
commit 507a8184cc
10 changed files with 40 additions and 21 deletions

View file

@ -1 +1,5 @@
%include <typemaps/exception.swg>
%insert("runtime") {
%define_as(SWIG_exception(code, msg), %block(%error(code, msg);))
}

View file

@ -5,8 +5,9 @@
* ------------------------------------------------------------ */
/* ------------------------------------------------------------
* The Ruby global rename rules
* The Ruby auto rename rules
* ------------------------------------------------------------ */
#if defined(SWIG_RUBY_AUTORENAME)
/* Class names are CamelCase */
%rename("%(camelcase)s", %isclass) "";
@ -16,7 +17,8 @@
/* Method names should be changed so that they are
lower_case_with_underscores */
%rename("%(undercase)s", %isfunction, %ismember) "";
%rename("%(undercase)s", %isfunction, %ismember) "";
#endif
/* ------------------------------------------------------------
* Inner macros