generate error when a proper overloaded function is not found, as suggested by Olly

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-03-20 00:24:39 +00:00
commit c9fa14d5db

View file

@ -874,7 +874,9 @@ public:
Printv(f->code,dispatch,"\n",NIL);
Printf(f->code,"/*No matching function for overloaded '%s'*/\n", symname);
Printf(f->code,"ErrorCode() = E_ERROR;\n");
Printf(f->code,"ErrorMsg() = \"No matching function for overloaded '%s'\";\n", symname);
Printv(f->code,"zend_error(ErrorCode(),ErrorMsg());",NIL);
Printf(f->code,"\n");
Printv(f->code,"}\n",NIL);