summaryrefslogtreecommitdiff
path: root/iup
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-06-15 01:05:34 -0700
committerPixel <pixel@nobis-crew.org>2010-06-15 01:05:34 -0700
commit6b3276d955e0fcd3793d5cc65eb8fee76b53dcd5 (patch)
treea5b3d05f98b2ccf0c485345ae031e62a4497a901 /iup
parenteed0eb6a476d54ce19aeff137984aa981d9e3976 (diff)
No, arg is NOT a good way to handle varargs...
Diffstat (limited to 'iup')
-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 6cd64b4..01465d5 100755
--- a/iup/srclua5/iuplua.lua
+++ b/iup/srclua5/iuplua.lua
@@ -7,14 +7,14 @@
iup.callbacks = {}
function iup.CallMethod(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
@@ -252,7 +252,7 @@ function iup._ERRORMESSAGE(err,traceback)
end
end
-iup.pack = function (...) return arg end
+iup.pack = function (...) return {...} end
function iup.protectedcall_(f, err)
if not f then