diff options
author | C3pa <41503714+C3pa@users.noreply.github.com> | 2022-05-12 16:19:08 +0200 |
---|---|---|
committer | C3pa <41503714+C3pa@users.noreply.github.com> | 2022-05-12 16:19:08 +0200 |
commit | 88a3cd6f3b63524dff77850cad876e679547b504 (patch) | |
tree | 68b1529670078212519b46c24da391c9d8e66890 /meta | |
parent | e069d28762467969596a66ace8b5cde34427c8a0 (diff) | |
download | lua-language-server-88a3cd6f3b63524dff77850cad876e679547b504.zip |
Implement support for LuaJIT's `table.new` and `table.clear`
Diffstat (limited to 'meta')
-rw-r--r-- | meta/template/table.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/template/table.lua b/meta/template/table.lua index a7fe68d2..b0a386c3 100644 --- a/meta/template/table.lua +++ b/meta/template/table.lua @@ -92,4 +92,16 @@ function table.foreachi(list, callback) end ---@deprecated function table.getn(list) end +---@version JIT +---#DES 'table.new' +---@param narray integer +---@param nhash integer +---@return table +function table.new(narray, nhash) end + +---@version JIT +---#DES 'table.clear' +---@param tab table +function table.clear(tab) end + return table |