Added missing file.

This commit is contained in:
Matthias Koefferlein 2020-09-13 23:29:15 +02:00
parent 0cc41f43c4
commit e8c9ae4012
2 changed files with 17 additions and 0 deletions

5
testdata/lym/b_inc.rb vendored Normal file
View File

@ -0,0 +1,5 @@
def f
raise("An error")
end

12
testdata/lym/m3.rb vendored Normal file
View File

@ -0,0 +1,12 @@
# %include b_inc.rb
begin
puts f
rescue => ex
ln = ex.backtrace[0].split(":")
# NOTE: as the backtrace is a native Ruby feature, include file translation
# does not happen. We need to do this explicitly here:
puts ex.to_s + " in " + RBA::Macro::real_path(ln[0], ln[1].to_i) + ":" + RBA::Macro::real_line(ln[0], ln[1].to_i).to_s
end