summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/lua/etc/strict.lua
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/util/lua/etc/strict.lua')
-rw-r--r--crawl-ref/source/util/lua/etc/strict.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/util/lua/etc/strict.lua b/crawl-ref/source/util/lua/etc/strict.lua
index 16ee26b429..604619dd2e 100644
--- a/crawl-ref/source/util/lua/etc/strict.lua
+++ b/crawl-ref/source/util/lua/etc/strict.lua
@@ -6,6 +6,8 @@
-- anywhere or assigned to inside a function.
--
+local getinfo, error, rawset, rawget = debug.getinfo, error, rawset, rawget
+
local mt = getmetatable(_G)
if mt == nil then
mt = {}
@@ -15,7 +17,7 @@ end
mt.__declared = {}
local function what ()
- local d = debug.getinfo(3, "S")
+ local d = getinfo(3, "S")
return d and d.what or "C"
end