[macruby-changes] [4463] MacRuby/trunk/interpreter.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 24 17:43:44 PDT 2010
Revision: 4463
http://trac.macosforge.org/projects/ruby/changeset/4463
Author: lsansonetti at apple.com
Date: 2010-08-24 17:43:43 -0700 (Tue, 24 Aug 2010)
Log Message:
-----------
make sure rb_singleton_class() can be interpreted
Modified Paths:
--------------
MacRuby/trunk/interpreter.cpp
Modified: MacRuby/trunk/interpreter.cpp
===================================================================
--- MacRuby/trunk/interpreter.cpp 2010-08-24 21:50:09 UTC (rev 4462)
+++ MacRuby/trunk/interpreter.cpp 2010-08-25 00:43:43 UTC (rev 4463)
@@ -84,7 +84,12 @@
return vm_dispatch(top, self, sel, block, opt, argc, argv);
}
+ else if (called == RoxorCompiler::shared->singletonClassFunc) {
+ VALUE klass = value_as(call_arg(call, 0), VALUE);
+ return rb_singleton_class(klass);
+ }
+
oops("unrecognized call instruction:", call);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100824/dbc82df4/attachment.html>
More information about the macruby-changes
mailing list