From bc2a59ee9d2a380d81bce33b0dee23771db3f2db Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 30 Sep 2005 23:51:11 +0000 Subject: [PATCH] Modify following features to work as flags, so that they can be truely set and unset: predicate git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7576 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/ruby.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SWIG/Source/Modules/ruby.cxx b/SWIG/Source/Modules/ruby.cxx index ef0c55aaf..be1753d36 100644 --- a/SWIG/Source/Modules/ruby.cxx +++ b/SWIG/Source/Modules/ruby.cxx @@ -1099,7 +1099,7 @@ public: Wrapper *f = NewWrapper(); /* Rename predicate methods */ - if (Getattr(n, "feature:predicate")) { + if (GetFlag(n, "feature:predicate")) { Append(symname, "?"); } @@ -1224,7 +1224,7 @@ public: /* Return value if necessary */ if (SwigType_type(t) != T_VOID && current != CONSTRUCTOR_ALLOCATE && current != CONSTRUCTOR_INITIALIZE) { need_result = 1; - if (Getattr(n, "feature:predicate")) { + if (GetFlag(n, "feature:predicate")) { Printv(f->code, tab4, "vresult = (result ? Qtrue : Qfalse);\n", NIL); } else { tm = Swig_typemap_lookup_new("out",n,"result",0);