From 5dd886dfe1fa7bbaf8ca898d33e45b04513f6492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 8 Nov 2021 17:21:46 +0800 Subject: update template --- meta/template/debug.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'meta/template/debug.lua') diff --git a/meta/template/debug.lua b/meta/template/debug.lua index 3f8a91a4..bb31ee1a 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|function +---@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|function, index: integer):string, any +---@overload fun(f: integer|async fun(...), index: integer):string, any ---@param thread thread ----@param f integer|function +---@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 function +---@param f async fun(...):... ---@param up integer ---@return string name ---@return any value @@ -148,7 +148,7 @@ function debug.setfenv(object, env) end ---#DES 'debug.sethook' ---@overload fun(hook: function, mask: hookmask, count?: integer) ---@param thread thread ----@param hook function +---@param hook async fun(...):... ---@param mask hookmask ---@param count? integer function debug.sethook(thread, hook, mask, count) end @@ -170,7 +170,7 @@ function debug.setlocal(thread, level, index, value) end function debug.setmetatable(value, meta) end ---#DES 'debug.setupvalue' ----@param f function +---@param f async fun(...):... ---@param up integer ---@param value any ---@return string name @@ -202,7 +202,7 @@ function debug.traceback(thread, message, level) end ---@version >5.2, JIT ---#DES 'debug.upvalueid' ----@param f function +---@param f async fun(...):... ---@param n integer ---@return lightuserdata id ---@nodiscard @@ -210,9 +210,9 @@ function debug.upvalueid(f, n) end ---@version >5.2, JIT ---#DES 'debug.upvaluejoin' ----@param f1 function +---@param f1 async fun(...):... ---@param n1 integer ----@param f2 function +---@param f2 async fun(...):... ---@param n2 integer function debug.upvaluejoin(f1, n1, f2, n2) end -- cgit v1.2.3