From fff8e91238aaa9af95bc5078a0cc8e4c05f2accc Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 31 Aug 2011 18:02:23 -0400 Subject: Added Lua debug.traceback documentation. --- modules/lua/lua.luadoc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/lua/lua.luadoc') diff --git a/modules/lua/lua.luadoc b/modules/lua/lua.luadoc index 7990f6e1..d43950b1 100644 --- a/modules/lua/lua.luadoc +++ b/modules/lua/lua.luadoc @@ -1076,6 +1076,13 @@ function debug.setmetatable(object, table) end -- with the given index. Otherwise, it returns the name of the upvalue. function debug.setupvalue(func, up, value) end +--- +-- Returns a string with a traceback of the call stack. An optional `message` +-- string is appended at the beginning of the traceback. An optional `level` +-- number tells at which level to start the traceback (default is 1, the +-- function calling `traceback`). +function debug.traceback([thread,] [message] [,level]) end + -- External libraries. -- LPeg. -- cgit v1.2.3