fix serious bug with def args + static methods

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-03 10:22:15 +00:00
commit b19d0dc05e
2 changed files with 22 additions and 0 deletions

View file

@ -2167,6 +2167,11 @@ public:
virtual int staticmemberfunctionHandler(Node *n) {
String *symname = Getattr(n,"sym:name");
Language::staticmemberfunctionHandler(n);
if (Getattr(n,"sym:nextSibling")) {
return SWIG_OK;
}
if (shadow) {
if ( !classic && !Getattr(n,"feature:python:callback") && have_addtofunc(n)) {
int kw = (check_kwargs(n) && !Getattr(n,"sym:overloaded")) ? 1 : 0;