[macruby-changes] [3208] MacRuby/trunk/include/ruby/ruby.h

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 7 20:45:43 PST 2010


Revision: 3208
          http://trac.macosforge.org/projects/ruby/changeset/3208
Author:   lsansonetti at apple.com
Date:     2010-01-07 20:45:43 -0800 (Thu, 07 Jan 2010)
Log Message:
-----------
recognize __NSArray0 as T_ARRAY

Modified Paths:
--------------
    MacRuby/trunk/include/ruby/ruby.h

Modified: MacRuby/trunk/include/ruby/ruby.h
===================================================================
--- MacRuby/trunk/include/ruby/ruby.h	2010-01-08 04:45:21 UTC (rev 3207)
+++ MacRuby/trunk/include/ruby/ruby.h	2010-01-08 04:45:43 UTC (rev 3208)
@@ -1361,7 +1361,11 @@
 	if (k == (Class)rb_cCFString) {
 	    return T_STRING;
 	}
-	if (k == (Class)rb_cCFArray || k == (Class)rb_cRubyArray) {
+	if (k == (Class)rb_cCFArray || k == (Class)rb_cRubyArray
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
+	    || k == (Class)rb_cNSArray0
+#endif
+	   ) {
 	    return T_ARRAY;
 	}
 	if (k == (Class)rb_cCFHash) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100107/8040efae/attachment.html>


More information about the macruby-changes mailing list