ref: c7b5d588f32c4448f134f5702149f3721403959e
dir: /libstd/die.myr/
use "syswrap.use"
use "types.use"
pkg std =
$noret const die : (msg : byte[:] -> void)
const assert : (cond : bool, msg : byte[:] -> void)
;;
const die = {msg
write(2, msg)
kill(getpid(), 6)
}
const assert = {cond, msg
if !cond
die(msg)
;;
}