diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-08 09:10:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-08 09:10:49 +0000 |
commit | c6b3a96fbb34cad869c66a452e13a115e1710358 (patch) | |
tree | 06b46c5fcfaac13bc9822f9bd9584f5b0ab54829 /tool/compile_prelude.rb | |
parent | a31c632299b72cd9e4ff53cec6d7b56f1f8a54f7 (diff) | |
download | ruby-c6b3a96fbb34cad869c66a452e13a115e1710358.tar.gz |
* tool/compile_prelude.rb: evaluates in the main context.
[ruby-core:25474]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/compile_prelude.rb')
-rwxr-xr-x | tool/compile_prelude.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb index 17b00f955a..66f9de221b 100755 --- a/tool/compile_prelude.rb +++ b/tool/compile_prelude.rb @@ -100,7 +100,7 @@ void Init_<%=init_name%>(void) { % lines_list.each_with_index {|(setup_lines, lines), i| - rb_iseq_eval(rb_iseq_compile( + rb_iseq_eval_main(rb_iseq_compile( rb_usascii_str_new(prelude_code<%=i%>, sizeof(prelude_code<%=i%>) - 1), rb_usascii_str_new(prelude_name<%=i%>, sizeof(prelude_name<%=i%>) - 1), INT2FIX(<%=1-setup_lines.length%>))); |