Modify following features to work as flags, so that they can be truely set and unset: kwargs

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-10-04 20:30:41 +00:00
commit a333a56da0

View file

@ -1124,7 +1124,7 @@ public:
int numarg = emit_num_arguments(l);
int numreq = emit_num_required(l);
int varargs = emit_isvarargs(l);
bool allow_kwargs = Getattr(n,"feature:kwargs") ? true : false;
bool allow_kwargs = GetFlag(n,"feature:kwargs") ? true : false;
bool ctor_director = (current == CONSTRUCTOR_INITIALIZE && Swig_directorclass(n));
int start = (current == MEMBER_FUNC || current == MEMBER_VAR || ctor_director) ? 1 : 0;