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:
parent
049d516956
commit
c9fa14d5db
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue