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:
parent
eea19ad0db
commit
72cf9e7ee7
1 changed files with 2 additions and 0 deletions
|
|
@ -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))));";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue