Skip to content

Instantly share code, notes, and snippets.

View nefftd's full-sized avatar

Anthony Eadicicco nefftd

View GitHub Profile
-- depends on tostringall() https://gist.github.com/nefftd/11382819
-- see: line 15
do
local err_fmt = "bad argument #%d to '%s' (%s expected, got %s)"
local function checktypelist(t,a1,...)
if a1 then
return t == a1 or checktypelist(t,...)
end
end