summaryrefslogtreecommitdiff
path: root/scripts/context/lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-11-11 23:40:14 +0200
committerMarius <mariausol@gmail.com>2011-11-11 23:40:14 +0200
commit3252a664b20d1179f543d3323356a71282da93d0 (patch)
tree7a7bf3546e6087da2e4914cbfd1e6b603379504a /scripts/context/lua
parent7cff3051825176a7c3a7cf0e0eee11da1a24db4e (diff)
downloadcontext-3252a664b20d1179f543d3323356a71282da93d0.tar.gz
beta 2011.11.11 22:34
Diffstat (limited to 'scripts/context/lua')
-rw-r--r--scripts/context/lua/mtxrun.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua
index 2932f92a6..83589c5bd 100644
--- a/scripts/context/lua/mtxrun.lua
+++ b/scripts/context/lua/mtxrun.lua
@@ -4322,6 +4322,7 @@ function table.setmetatableindex(t,f)
setmetatable(t,{ __index = f })
end
end
+ return t
end
function table.setmetatablenewindex(t,f)
@@ -4339,6 +4340,7 @@ function table.setmetatablenewindex(t,f)
setmetatable(t,{ __newindex = f })
end
end
+ return t
end
function table.setmetatablecall(t,f)
@@ -4348,6 +4350,7 @@ function table.setmetatablecall(t,f)
else
setmetatable(t,{ __call = f })
end
+ return t
end
function table.setmetatablekey(t,key,value)
@@ -4357,6 +4360,7 @@ function table.setmetatablekey(t,key,value)
setmetatable(t,m)
end
m[key] = value
+ return t
end
function table.getmetatablekey(t,key,value)