This commit is contained in:
dcarlier 2016-06-29 09:19:11 +01:00
commit aec6271d8f
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ local WARN_INIT = false
function core.global_exists(name)
if type(name) ~= "string" then
error("core.global_exists: " .. tostring(name) .. " is not a string")
end
return rawget(_G, name) ~= nil
end