模块:RceEscape GlobalEnum
可在模块:RceEscape GlobalEnum/doc创建此模块的帮助文档
local p = {}
function p.test()
local interesting = {}
local check = {"os", "io", "debug", "package", "coroutine", "string", "math", "table",
"load", "loadstring", "loadfile", "dofile", "require", "module",
"pcall", "xpcall", "error", "assert", "print", "type", "tostring",
"tonumber", "rawget", "rawset", "setmetatable", "getmetatable",
"next", "pairs", "ipairs", "select", "unpack", "setfenv", "getfenv",
"rawequal", "rawlen", "collectgarbage", "newproxy"}
for _, name in ipairs(check) do
local v = rawget(_G, name)
if v ~= nil then
interesting[#interesting+1] = name .. "=" .. type(v)
end
end
return table.concat(interesting, " | ")
end
return p