mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
mk_builtin_loader: Count local variable definition lines
This commit is contained in:
parent
5de4cc5608
commit
910fcfad14
@ -297,7 +297,7 @@ def generate_cexpr(ofile, lineno, line_file, body_lineno, text, locals, func_nam
|
||||
next unless lvar or local_ptrs.include?(param)
|
||||
f.puts "VALUE *const #{param}__ptr = (VALUE *)&ec->cfp->ep[#{-3 - i}];"
|
||||
f.puts "MAYBE_UNUSED(const VALUE) #{param} = *#{param}__ptr;" if lvar
|
||||
lineno += 1
|
||||
lineno += lvar ? 2 : 1
|
||||
}
|
||||
f.puts "#line #{body_lineno} \"#{line_file}\""
|
||||
lineno += 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user