--[[
	Extension of Lua's 'assert' that lets you specify an error level.
]]

local function assertLevel(condition, message, level)
	message = message or "Assertion failed!"
	level = level or 1

	if not condition then
		error(message, level + 1)
	end
end
