From 9269032792f18b895ae7f8f5950ea5df4284e4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 24 Aug 2023 17:30:15 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9F=BA=E7=A1=80=E5=BA=93=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meta/template/basic.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meta/template') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index e646d3b8..44f62a46 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -8,6 +8,7 @@ arg = {} ---@generic T ---@param v? T ---@param message? any +---@param ... any ---@return T ---@return any ... function assert(v, message, ...) end @@ -30,6 +31,7 @@ function assert(v, message, ...) end ---#if VERSION >= 5.4 then ---#DES 'collectgarbage' ---@param opt? gcoptions +---@param ... any ---@return any function collectgarbage(opt, ...) end ---#else @@ -136,6 +138,7 @@ function newproxy(proxy) end ---@version 5.1 ---#DES 'module' ---@param name string +---@param ... any function module(name, ...) end ---#DES 'next' @@ -161,12 +164,14 @@ function pairs(t) end ---@param f async fun(...):... ---#end ---@param arg1? any +---@param ... any ---@return boolean success ---@return any result ---@return any ... function pcall(f, arg1, ...) end ---#DES 'print' +---@param ... any function print(...) end ---#DES 'rawequal' @@ -198,6 +203,7 @@ function rawset(table, index, value) end ---#DES 'select' ---@param index integer|"#" +---@param ... any ---@return any ---@nodiscard function select(index, ...) end @@ -298,6 +304,7 @@ _VERSION = "Lua 5.4" ---@version >5.4 ---#DES 'warn' ---@param message string +---@param ... any function warn(message, ...) end ---#if VERSION == 5.1 and not JIT then @@ -313,6 +320,7 @@ function xpcall(f, err) end ---@param f async fun(...):... ---@param msgh function ---@param arg1? any +---@param ... any ---@return boolean success ---@return any result ---@return any ... -- cgit v1.2.3