mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Merge branch 'main' into release-0.28
This commit is contained in:
commit
8685edec7e
1 changed files with 6 additions and 0 deletions
|
|
@ -531,9 +531,15 @@ local removed_names = {
|
|||
"getregistry", "getupvalue", "setupvalue", "upvalueid", "upvaluejoin",
|
||||
"sethook", "gethook", "getinfo"
|
||||
}
|
||||
local _getinfo = debug.getinfo
|
||||
for i, name in ipairs(removed_names) do
|
||||
debug[name] = nil
|
||||
end
|
||||
debug.getinfo = function(...)
|
||||
local debuginfo = _getinfo(...)
|
||||
debuginfo.func = nil
|
||||
return debuginfo
|
||||
end
|
||||
|
||||
-- --------- Deprecated functions ------ --
|
||||
local function wrap_deprecated(func, name, alternatives)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue