summaryrefslogtreecommitdiff
path: root/library/lua
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-06-22 20:17:55 +0400
committerAlexander Gavrilov2012-06-22 20:17:55 +0400
commitbd37cc09c525d4db9400e224e4ca3cadcf0eed4c (patch)
treec10776a010d945cb96467549fe136173fcc796cc /library/lua
parentdedc59c709fda0e8d0976ed941ebcc42c463823c (diff)
downloaddfhack-bd37cc09c525d4db9400e224e4ca3cadcf0eed4c.tar.gz
dfhack-bd37cc09c525d4db9400e224e4ca3cadcf0eed4c.tar.bz2
dfhack-bd37cc09c525d4db9400e224e4ca3cadcf0eed4c.tar.xz
Update the Lua API document with info about scripts.
Diffstat (limited to 'library/lua')
-rw-r--r--library/lua/dfhack.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/lua/dfhack.lua b/library/lua/dfhack.lua
index d200a6c5..d56d4df6 100644
--- a/library/lua/dfhack.lua
+++ b/library/lua/dfhack.lua
@@ -68,6 +68,8 @@ function dfhack.with_temp_object(obj,fn,...)
return dfhack.call_with_finalizer(1,true,call_delete,obj,fn,obj,...)
end
+dfhack.exception.__index = dfhack.exception
+
-- Module loading
function mkmodule(module,env)