scilab: fix allprotected test (scilab 6)

This commit is contained in:
Simon Marchetto 2014-06-06 12:03:03 +02:00
commit 9dda9285ea
2 changed files with 10 additions and 8 deletions

View file

@ -525,10 +525,12 @@ public:
Printf(tmp, "}");
Wrapper_add_local(wrapper, "argv", tmp);
Printf(wrapper->code, "SWIG_Scilab_SetApiContext(pvApiCtx);\n");
/* Dump the dispatch function */
Printv(wrapper->code, dispatch, "\n", NIL);
Printf(wrapper->code, "Scierror(999, _(\"No matching function for overload\"));\n");
Printf(wrapper->code, "return SWIG_OK;\n");
Printf(wrapper->code, "return SWIG_ERROR;\n");
Printv(wrapper->code, "}\n", NIL);
Wrapper_print(wrapper, wrappersSection);