mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-13 11:38:15 +07:00
fix luals warning for vanilla lua mode
This commit is contained in:
38
.vscode/launch.json
vendored
38
.vscode/launch.json
vendored
@@ -2,40 +2,22 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch Evolved All",
|
||||
"name": "Launch Evolved All (lua5.1)",
|
||||
"type": "lua-local",
|
||||
"request": "launch",
|
||||
"program": {
|
||||
"lua": "lua5.1",
|
||||
"file": "${workspaceFolder}/develop/all.lua"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch Evolved All (luajit)",
|
||||
"type": "lua-local",
|
||||
"request": "launch",
|
||||
"program": {
|
||||
"lua": "luajit",
|
||||
"file": "${workspaceFolder}/develop/all.lua"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch Evolved Example",
|
||||
"type": "lua-local",
|
||||
"request": "launch",
|
||||
"program": {
|
||||
"lua": "luajit",
|
||||
"file": "${workspaceFolder}/develop/example.lua"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch Evolved Unbench",
|
||||
"type": "lua-local",
|
||||
"request": "launch",
|
||||
"program": {
|
||||
"lua": "luajit",
|
||||
"file": "${workspaceFolder}/develop/unbench.lua"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch Evolved Untests",
|
||||
"type": "lua-local",
|
||||
"request": "launch",
|
||||
"program": {
|
||||
"lua": "luajit",
|
||||
"file": "${workspaceFolder}/develop/untests.lua"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ local __structural_changes = 0 ---@type integer
|
||||
---
|
||||
---
|
||||
|
||||
---@diagnostic disable-next-line: deprecated
|
||||
local __table_move = table.move or function(a1, f, e, t, a2)
|
||||
if a2 == nil then
|
||||
a2 = a1
|
||||
@@ -72,9 +73,8 @@ local __table_move = table.move or function(a1, f, e, t, a2)
|
||||
return a2
|
||||
end
|
||||
|
||||
local __table_unpack = table.unpack or function(list, i, j)
|
||||
return unpack(list, i, j)
|
||||
end
|
||||
---@diagnostic disable-next-line: deprecated
|
||||
local __table_unpack = table.unpack or unpack
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user