1 2 3 4 5 6
%include <typemaps/exception.swg> %insert("runtime") { %define_as(SWIG_exception(code, msg), SWIG_Scilab_Error(code, msg);) }