mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval_intern.h, yarvcore.h: move declaration of sysstack_error
to yarvcore.h. * iseq.c: fix symbol name (:toplevel -> :top). * lib/vm/instruction.rb, template/vm.inc.tmpl: replacable current file name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1ccf555a70
commit
9c708baa2d
6 changed files with 39 additions and 28 deletions
|
@ -12,17 +12,17 @@
|
|||
*/
|
||||
|
||||
<%=
|
||||
ret = ''
|
||||
offset = 15
|
||||
line_no = 0
|
||||
vm_body.each_line{|line|
|
||||
if line =~ /^\#line __CURRENT_LINE__/
|
||||
ret << line.sub(/__CURRENT_LINE__/, "#{line_no+offset}")
|
||||
line = 15
|
||||
vm_body.gsub(/\n|__CURRENT_LINE__|__CURRENT_FILE__/){|e|
|
||||
case e
|
||||
when '__CURRENT_LINE__'
|
||||
line.to_s
|
||||
when '__CURRENT_FILE__'
|
||||
"vm.inc"
|
||||
else
|
||||
ret <<line
|
||||
line += 1
|
||||
e
|
||||
end
|
||||
line_no += 1
|
||||
}
|
||||
ret
|
||||
%>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue