10 lines
178 B
Lua
10 lines
178 B
Lua
|
-- Various global functions to cause less typing.
|
||
|
|
||
|
|
||
|
function assertf(bool, fmt, ...)
|
||
|
fmt = fmt or "Assetion Failed"
|
||
|
if not bool then
|
||
|
error(string.format(fmt,...),2)
|
||
|
end
|
||
|
end
|