This commit is contained in:
Bunny67
2018-07-13 17:31:57 +03:00
parent 89e48a1432
commit c9f6edcd9b
13 changed files with 21 additions and 59 deletions
+1 -2
View File
@@ -5,8 +5,7 @@ function Private.argcheck(value, num, ...)
assert(type(num) == 'number', "Bad argument #2 to 'argcheck' (number expected, got " .. type(num) .. ')')
for i = 1, arg.n do
-- if(type(value) == arg[i]) then return end
if(type(value) == select(i, unpack(arg))) then return end
if(type(value) == arg[i]) then return end
end
local types = strjoin(', ', unpack(arg))