[macruby-changes] [3921] MacRuby/trunk/compiler.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 12 22:26:31 PDT 2010
Revision: 3921
http://trac.macosforge.org/projects/ruby/changeset/3921
Author: lsansonetti at apple.com
Date: 2010-04-12 22:26:28 -0700 (Mon, 12 Apr 2010)
Log Message:
-----------
implemented BEGIN{}
Modified Paths:
--------------
MacRuby/trunk/compiler.cpp
Modified: MacRuby/trunk/compiler.cpp
===================================================================
--- MacRuby/trunk/compiler.cpp 2010-04-13 01:08:15 UTC (rev 3920)
+++ MacRuby/trunk/compiler.cpp 2010-04-13 05:26:28 UTC (rev 3921)
@@ -5428,6 +5428,18 @@
}
break;
+ case NODE_PRELUDE:
+ {
+ assert(node->nd_head != NULL);
+ compile_node(node->nd_head);
+
+ if (node->nd_body != NULL) {
+ compile_node(node->nd_body);
+ }
+
+ return nilVal;
+ }
+
case NODE_POSTEXE:
{
assert(node->nd_body != NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100412/a4522011/attachment.html>
More information about the macruby-changes
mailing list