Skip to content
Snippets Groups Projects
Verified Commit bf7d4011 authored by Petr Špaček's avatar Petr Špaček
Browse files

table_print: fix indentation

parent e806b5f9
No related branches found
No related tags found
1 merge request!801Table print improvements
......@@ -386,14 +386,14 @@ local function funcsign(f)
table.insert(func_args, k)
end
end
if debug.getlocal(2, -1) then
-- vararg function
table.insert(func_args, "...")
if debug.getlocal(2, -1) then
-- vararg function
table.insert(func_args, "...")
end
debug.sethook(oldhook)
error('aborting the call to introspected function')
end
debug.sethook(oldhook)
error('aborting the call to introspected function')
end
end
oldhook = debug.sethook(hook, "c") -- invoke hook() on function call
-- fake arguments, necessary to detect vararg functions
local fakearg = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment