summaryrefslogtreecommitdiff
path: root/meta/template/debug.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/template/debug.lua')
-rw-r--r--meta/template/debug.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/template/debug.lua b/meta/template/debug.lua
index 7cb417b2..48ba52d9 100644
--- a/meta/template/debug.lua
+++ b/meta/template/debug.lua
@@ -63,7 +63,7 @@ function debug.gethook(co) end
---#DES 'debug.getinfo'
---@overload fun(f: integer|function, what?: infowhat):debuginfo
---@param thread thread
----@param f integer|async fun()
+---@param f integer|async fun(...):...
---@param what? infowhat
---@return debuginfo
---@nodiscard
@@ -81,9 +81,9 @@ function debug.getinfo(thread, f, what) end
function debug.getlocal(thread, level, index) end
---#else
---#DES 'debug.getlocal>5.2'
----@overload fun(f: integer|async fun(), index: integer):string, any
+---@overload fun(f: integer|async fun(...):..., index: integer):string, any
---@param thread thread
----@param f integer|async fun()
+---@param f integer|async fun(...):...
---@param index integer
---@return string name
---@return any value
@@ -103,7 +103,7 @@ function debug.getmetatable(object) end
function debug.getregistry() end
---#DES 'debug.getupvalue'
----@param f async fun()
+---@param f async fun(...):...
---@param up integer
---@return string name
---@return any value
@@ -146,11 +146,11 @@ function debug.setfenv(object, env) end
---|+'"l"' # ---#DESTAIL 'hookmask.l'
---#DES 'debug.sethook'
----@overload fun(hook: async fun(), mask: hookmask, count?: integer)
----@overload fun(thread: thread)
----@overload fun()
+---@overload fun(hook: (async fun(...):...), mask: hookmask, count?: integer)
+---@overload fun(thread: thread):...
+---@overload fun(...):...
---@param thread thread
----@param hook async fun()
+---@param hook async fun(...):...
---@param mask hookmask
---@param count? integer
function debug.sethook(thread, hook, mask, count) end
@@ -172,7 +172,7 @@ function debug.setlocal(thread, level, index, value) end
function debug.setmetatable(value, meta) end
---#DES 'debug.setupvalue'
----@param f async fun()
+---@param f async fun(...):...
---@param up integer
---@param value any
---@return string name
@@ -204,7 +204,7 @@ function debug.traceback(thread, message, level) end
---@version >5.2, JIT
---#DES 'debug.upvalueid'
----@param f async fun()
+---@param f async fun(...):...
---@param n integer
---@return lightuserdata id
---@nodiscard
@@ -212,9 +212,9 @@ function debug.upvalueid(f, n) end
---@version >5.2, JIT
---#DES 'debug.upvaluejoin'
----@param f1 async fun()
+---@param f1 async fun(...):...
---@param n1 integer
----@param f2 async fun()
+---@param f2 async fun(...):...
---@param n2 integer
function debug.upvaluejoin(f1, n1, f2, n2) end