mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-15 12:19:47 +07:00
compat functions cleanup
This commit is contained in:
@@ -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)()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user