alcedo/kernel/panicoverride.nim

17 lines
319 B
Nim
Raw Permalink Normal View History

2017-11-07 01:39:24 +00:00
import tty
{.push stack_trace: off, profiler:off.}
proc rawoutput(s: string) =
tty.write(s)
proc panic(s: string) =
rawoutput(s)
# Alternatively we also could implement these 2 here:
#
# template sysFatal(exceptn: typeDesc, message: string)
# template sysFatal(exceptn: typeDesc, message, arg: string)
{.pop.}