From f41a788cb424b31fd687253e8db3fd448a693b4a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 21 Aug 2010 01:14:24 -0400 Subject: Added Lua autocompletion support. --- modules/lua/api/debug.luadoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/lua/api/debug.luadoc (limited to 'modules/lua/api/debug.luadoc') diff --git a/modules/lua/api/debug.luadoc b/modules/lua/api/debug.luadoc new file mode 100644 index 00000000..fb7c83f3 --- /dev/null +++ b/modules/lua/api/debug.luadoc @@ -0,0 +1,18 @@ +--- Enters interactive debug mode, line with only "cont" terminates. +function debug() +--- Returns current hook function, hook mask, hook count. +function gethook() +--- Returns table with information about a function. +function getinfo(function [, what]) +--- Returns name and value of local variable with index local at stack level. +function getlocal(level, local) +--- Returns name and value of upvalue with index up of function func. +function getupvalue(func, up) +--- Sets given function as a hook, mask="[crl]". +function sethook(hook, mask [, count]) +--- Sets local variable with index local at stack level with value. +function setlocal(level, local, value) +--- Sets upvalue with index up of function func with value. +function setupvalue(func, up, value) +--- Returns a string with a traceback of the call stack. +function traceback([message]) -- cgit v1.2.3