From 27034b3d99b31be96865e50d70a776fb3caac088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 13 Nov 2020 10:57:15 +0800 Subject: =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meta/template/debug.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'meta/template/debug.lua') diff --git a/meta/template/debug.lua b/meta/template/debug.lua index b957d948..f599655c 100644 --- a/meta/template/debug.lua +++ b/meta/template/debug.lua @@ -80,10 +80,10 @@ function debug.getuservalue(u, n) end ---@return integer|boolean function debug.setcstacklimit(limit) end ----@generic ANY ----@param object ANY +---@generic T +---@param object T ---@param env table ----@return ANY object +---@return T object function debug.setfenv(object, env) end ---@alias hookmask @@ -106,10 +106,10 @@ function debug.sethook(thread, hook, mask, count) end ---@return string name function debug.setlocal(thread, level, index, value) end ----@generic ANY ----@param value ANY +---@generic T +---@param value T ---@param meta table ----@return ANY value +---@return T value function debug.setmetatable(value, meta) end ---@param f function -- cgit v1.2.3