From 1f58b1363c0970d9d91370a34deefdae40adae8e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 4 Oct 2005 20:30:41 +0000 Subject: [PATCH] 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@7585 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/ruby.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SWIG/Source/Modules/ruby.cxx b/SWIG/Source/Modules/ruby.cxx index 4a0a88991..889de7906 100644 --- a/SWIG/Source/Modules/ruby.cxx +++ b/SWIG/Source/Modules/ruby.cxx @@ -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;