scilab: use SWIG_Scilab_Raise() for exceptions

This commit is contained in:
Simon Marchetto 2014-08-08 16:30:00 +02:00
commit 460e737df1

View file

@ -297,8 +297,8 @@ namespace swig
%typemap(throws, noblock=1) stop_iteration %typemap(throws, noblock=1) stop_iteration
{ {
Scierror(999, "%s: stop_iteration exception", SWIG_Scilab_GetFname()); SWIG_Scilab_Raise(0, "stop_iteration", NULL);
SWIG_fail; return SWIG_ERROR;
} }
// Mark methods that return new objects // Mark methods that return new objects