compat functions cleanup

This commit is contained in:
BlackMATov
2025-03-21 22:21:56 +07:00
parent a03fdad903
commit 5f1e8a109f
3 changed files with 103 additions and 29 deletions

View File

@@ -1,12 +1,14 @@
local basics = {}
local __table_pack = (function()
---@diagnostic disable-next-line: deprecated
return table.pack or function(...)
return { n = select('#', ...), ... }
end
end)()
local __table_unpack = (function()
---@diagnostic disable-next-line: deprecated
return table.unpack or unpack
end)()