summaryrefslogtreecommitdiff
path: root/iup/srclua5/iuplua.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-09 00:33:21 +0100
committerPixel <pixel@nobis-crew.org>2009-11-09 00:33:21 +0100
commitbb84387558381df7c5fa47091f541baa37a42581 (patch)
tree88c96debf4c7176cb51184d04d79f48ab5b95227 /iup/srclua5/iuplua.lua
parentae064615df7e9738f22ecd7ac9a68a13666062c5 (diff)
LuaJIT doesn't support old lua5 vararg syntax. Let's convert this.
Diffstat (limited to 'iup/srclua5/iuplua.lua')
-rwxr-xr-xiup/srclua5/iuplua.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/iup/srclua5/iuplua.lua b/iup/srclua5/iuplua.lua
index b0f644a..a88bf5d 100755
--- a/iup/srclua5/iuplua.lua
+++ b/iup/srclua5/iuplua.lua
@@ -7,14 +7,14 @@
callbacks = {}
function iupCallMethod(name, ...)
- local handle = arg[1] -- always the handle
+ local handle = ... -- always the handle
local func = handle[name]
if (not func) then
return
end
if type(func) == "function" then
- return func(unpack(arg))
+ return func(...)
elseif type(func) == "string" then
local temp = self
self = handle
@@ -251,7 +251,7 @@ function _ERRORMESSAGE(err,traceback)
end
end
-pack = function (...) return arg end
+pack = function (...) return {...} end
function protectedcall_(f, err)
if not f then