Reverting callstack limits
This commit is contained in:
parent
93a64db494
commit
1c98e82c97
6
ldt.lua
6
ldt.lua
@ -13,18 +13,18 @@ callstack_range = function()
|
||||
for i = 1, 999 do
|
||||
local info = debug.getinfo(i, 'f')
|
||||
if not info then
|
||||
min = i - 0
|
||||
min = i - 1
|
||||
break
|
||||
end
|
||||
if info.func == ldb.run_debugger then
|
||||
min = i + 0
|
||||
min = i + 2
|
||||
break
|
||||
end
|
||||
end
|
||||
for i = min, 999 do
|
||||
local info = debug.getinfo(i, 'f')
|
||||
if not info or info.func == ldb.guard then
|
||||
max = i - 0
|
||||
max = i - 3
|
||||
break
|
||||
end
|
||||
end
|
||||
|
6
ldt.moon
6
ldt.moon
@ -17,15 +17,15 @@ callstack_range = ->
|
||||
for i=1,999 do
|
||||
info = debug.getinfo(i, 'f')
|
||||
if not info
|
||||
min = i-0
|
||||
min = i-1
|
||||
break
|
||||
if info.func == ldb.run_debugger
|
||||
min = i+0
|
||||
min = i+2
|
||||
break
|
||||
for i=min,999
|
||||
info = debug.getinfo(i, 'f')
|
||||
if not info or info.func == ldb.guard
|
||||
max = i-0
|
||||
max = i-3
|
||||
break
|
||||
return min, max
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user