diff options
Diffstat (limited to 'builtin/common')
-rw-r--r-- | builtin/common/strict.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/common/strict.lua b/builtin/common/strict.lua index c353bb913..c7b86461f 100644 --- a/builtin/common/strict.lua +++ b/builtin/common/strict.lua @@ -4,6 +4,11 @@ local WARN_INIT = false +function core.global_exists(name) + return rawget(_G, name) ~= nil +end + + local function warn(message) print(os.date("%H:%M:%S: WARNING: ")..message) end |