summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorC3pa <41503714+C3pa@users.noreply.github.com>2022-05-12 16:19:08 +0200
committerC3pa <41503714+C3pa@users.noreply.github.com>2022-05-12 16:19:08 +0200
commit88a3cd6f3b63524dff77850cad876e679547b504 (patch)
tree68b1529670078212519b46c24da391c9d8e66890 /meta
parente069d28762467969596a66ace8b5cde34427c8a0 (diff)
downloadlua-language-server-88a3cd6f3b63524dff77850cad876e679547b504.zip
Implement support for LuaJIT's `table.new` and `table.clear`
Diffstat (limited to 'meta')
-rw-r--r--meta/template/table.lua12
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