mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-17 06:36:52 +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",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"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",
|
"type": "lua-local",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": {
|
"program": {
|
||||||
"lua": "luajit",
|
"lua": "luajit",
|
||||||
"file": "${workspaceFolder}/develop/all.lua"
|
"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)
|
local __table_move = table.move or function(a1, f, e, t, a2)
|
||||||
if a2 == nil then
|
if a2 == nil then
|
||||||
a2 = a1
|
a2 = a1
|
||||||
@@ -72,9 +73,8 @@ local __table_move = table.move or function(a1, f, e, t, a2)
|
|||||||
return a2
|
return a2
|
||||||
end
|
end
|
||||||
|
|
||||||
local __table_unpack = table.unpack or function(list, i, j)
|
---@diagnostic disable-next-line: deprecated
|
||||||
return unpack(list, i, j)
|
local __table_unpack = table.unpack or unpack
|
||||||
end
|
|
||||||
|
|
||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user