2017-11-07 01:39:24 +00:00
|
|
|
import tty
|
2017-10-22 00:49:02 +01:00
|
|
|
|
|
|
|
{.push stack_trace: off, profiler:off.}
|
|
|
|
|
|
|
|
proc rawoutput(s: string) =
|
2017-11-07 01:39:24 +00:00
|
|
|
tty.terminalWrite(s)
|
2017-10-22 00:49:02 +01:00
|
|
|
|
|
|
|
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.}
|