diff options
author | AlexCai2019 <89138532+AlexCai2019@users.noreply.github.com> | 2022-05-08 01:43:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 01:43:28 +0800 |
commit | 0fd83c4ca9f82a02becab6c304a8a7de75098507 (patch) | |
tree | be9790d9d4823fe728c5b36e94093fe5f42b7725 /meta/template/debug.lua | |
parent | 89203efad8c9b5513e05ca4d5696107924865b10 (diff) | |
parent | 67b4c574849d1667e0ecb39c51aeed8e30b43056 (diff) | |
download | lua-language-server-0fd83c4ca9f82a02becab6c304a8a7de75098507.zip |
Merge branch 'sumneko:master' into master
Diffstat (limited to 'meta/template/debug.lua')
-rw-r--r-- | meta/template/debug.lua | 10 |
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 |