Mercurial > code > home > repos > homeauto
view service/iot2/panicoverride.nim @ 689:e3eceee54937
introduce capnp, more build, some demos
Ignore-this: 29801e9e9f8a85fd0d822207c6eacce1
author | drewp@bigasterisk.com |
---|---|
date | Thu, 23 Jan 2020 21:00:47 -0800 |
parents | |
children |
line wrap: on
line source
proc printf(frmt: cstring) {.varargs, importc, header: "<stdio.h>", cdecl.} proc exit(code: int) {.importc, header: "<stdlib.h>", cdecl.} {.push stack_trace: off, profiler:off.} proc rawoutput(s: string) = printf("%s\n", s) proc panic(s: string) = rawoutput(s) exit(1) {.pop.}