Skip to content

Commit

Permalink
Hacky fixup for when resume is being managed by C code
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffleyland committed Feb 17, 2014
1 parent be5ad93 commit 6150cfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/luatrace/profile.lua
Expand Up @@ -210,6 +210,9 @@ function profile.record(a, b, c, d)
local func = get_function(filename, line_defined, last_line_defined)
local frame = { func=func, tailcall=(a=="T") or nil }
call(frame)
if not thread_top() then
push_thread(get_thread(-1))
end
call_on_thread(frame)

elseif a == "<" then -- Return
Expand Down

0 comments on commit 6150cfd

Please sign in to comment.