Added a "throws" typemap for enum types. Fixes the broken throw_exception.i

test case for the Ruby module.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Lyle Johnson 2004-08-24 13:34:44 +00:00
commit 72cf9e7ee7

View file

@ -44,4 +44,6 @@ static void SWIG_AsVal(VALUE obj, int *val)
* Exception handling
* ------------------------------------------------------------ */
%typemap(throws) enum SWIGTYPE
"rb_exc_raise(rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(INT2NUM($1))));";