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.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/template/debug.lua b/meta/template/debug.lua
index 6e74e1f6..f62aca6e 100644
--- a/meta/template/debug.lua
+++ b/meta/template/debug.lua
@@ -112,8 +112,8 @@ function debug.getupvalue(f, up) end
---#if VERSION >= 5.4 then
---#DES 'debug.getuservalue>5.4'
----@param u userdata
----@param n integer
+---@param u userdata
+---@param n? integer
---@return any
---@return boolean
---@nodiscard
@@ -146,7 +146,9 @@ function debug.setfenv(object, env) end
---|+'"l"' # ---#DESTAIL 'hookmask.l'
---#DES 'debug.sethook'
----@overload fun(hook: function, mask: hookmask, count?: integer)
+---@overload fun(hook: async fun(), mask: hookmask, count?: integer)
+---@overload fun(thread: thread)
+---@overload fun()
---@param thread thread
---@param hook async fun()
---@param mask hookmask
@@ -180,7 +182,7 @@ function debug.setupvalue(f, up, value) end
---#DES 'debug.setuservalue>5.4'
---@param udata userdata
---@param value any
----@param n integer
+---@param n? integer
---@return userdata udata
function debug.setuservalue(udata, value, n) end
---#elseif VERSION >= 5.2 or JIT then