diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tool/compile_prelude.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Sep 10 23:00:43 2008 Yusuke Endoh <mame@tsg.ne.jp> + + * tool/compile_prelude.rb: print "<internal:prelude>" instead of + "prelude.rb" on stack trace. [ruby-dev:36129] + Wed Sep 10 21:09:32 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp> * test/win32ole/test_err_in_callback.rb: InternetExplorer should diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb index 70197aebf3..72cf961bd8 100644 --- a/tool/compile_prelude.rb +++ b/tool/compile_prelude.rb @@ -64,7 +64,7 @@ tmp = ERB.new(<<'EOS', nil, '%').result(binding) #include "vm_core.h" % preludes.zip(lines_list).each_with_index {|(prelude, (setup_lines, lines)), i| -static const char prelude_name<%=i%>[] = <%=c_esc(File.basename(prelude))%>; +static const char prelude_name<%=i%>[] = <%=c_esc("<internal:" + File.basename(prelude, ".rb") + ">")%>; static const char prelude_code<%=i%>[] = % (setup_lines+lines).each {|line| <%=line%> |