1 2 3 4 5 6
function assert (status,msg) if not status then print("ERROR: " .. (msg or "assertion failed")) error() end end