[macruby-changes] [4843] MacRuby/trunk/vm.cpp

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 28 13:50:31 PDT 2010


Revision: 4843
          http://trac.macosforge.org/projects/ruby/changeset/4843
Author:   lsansonetti at apple.com
Date:     2010-10-28 13:50:29 -0700 (Thu, 28 Oct 2010)
Log Message:
-----------
fix #methods and friends to not include unavailable (undefined, etc.) methods

Modified Paths:
--------------
    MacRuby/trunk/vm.cpp

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2010-10-28 14:01:15 UTC (rev 4842)
+++ MacRuby/trunk/vm.cpp	2010-10-28 20:50:29 UTC (rev 4843)
@@ -2267,6 +2267,9 @@
     if (methods != NULL) {
 	for (unsigned int i = 0; i < count; i++) {
 	    Method m = methods[i];
+	    if (UNAVAILABLE_IMP(method_getImplementation(m))) {
+		continue;
+	    }
 	    rb_vm_method_node_t *node = method_node_get(m);
 	    if (node == NULL && !include_objc_methods) {
 		continue;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101028/834eae6b/attachment.html>


More information about the macruby-changes mailing list