return debug.getinfo function
This commit is contained in:
parent
00c7c986bb
commit
844eb054af
@ -531,9 +531,15 @@ local removed_names = {
|
|||||||
"getregistry", "getupvalue", "setupvalue", "upvalueid", "upvaluejoin",
|
"getregistry", "getupvalue", "setupvalue", "upvalueid", "upvaluejoin",
|
||||||
"sethook", "gethook", "getinfo"
|
"sethook", "gethook", "getinfo"
|
||||||
}
|
}
|
||||||
|
local _getinfo = debug.getinfo
|
||||||
for i, name in ipairs(removed_names) do
|
for i, name in ipairs(removed_names) do
|
||||||
debug[name] = nil
|
debug[name] = nil
|
||||||
end
|
end
|
||||||
|
debug.getinfo = function(...)
|
||||||
|
local debuginfo = _getinfo(...)
|
||||||
|
debuginfo.func = nil
|
||||||
|
return debuginfo
|
||||||
|
end
|
||||||
|
|
||||||
-- --------- Deprecated functions ------ --
|
-- --------- Deprecated functions ------ --
|
||||||
local function wrap_deprecated(func, name, alternatives)
|
local function wrap_deprecated(func, name, alternatives)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user