Whoops, use rb_exc_raise() instead of rb_raise() to re-raise a "live"

exception.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Logan Johnson 2003-06-02 21:46:56 +00:00
commit 543608147d

View file

@ -2161,7 +2161,7 @@ public:
Printv(rescue->code, Str(tm), "\n", NIL);
Printv(rescue->code, "else {\n", NIL);
Printf(rescue->code, "%s--;\n", depthCountName);
Printv(rescue->code, "rb_raise(error, \"\");\n", NIL);
Printv(rescue->code, "rb_exc_raise(error);\n", NIL);
Printv(rescue->code, "}", NIL);
Printv(rescue->code, "}", NIL);