aboutsummaryrefslogtreecommitdiff
path: root/gamemode/utility/type.lua
blob: 61f1a8b7cd929327e37819d65ffa1aaec4d2e79b (plain)
1
2
3
4
5
6
7
8
9
10
11
local t = {}

t.checktypes = function(...)
	local args = {...}
	for i = 1, #args, 2 do
		assert(type(args[i]) == args[i + 1], string.format("Bad argument #%d, was %s, expected %s",(i + 1) / 2,type(args[i]),args[i + 1]))
	end
end

return t