comparison 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
comparison
equal deleted inserted replaced
688:7ac46dc29517 689:e3eceee54937
1 proc printf(frmt: cstring) {.varargs, importc, header: "<stdio.h>", cdecl.}
2 proc exit(code: int) {.importc, header: "<stdlib.h>", cdecl.}
3
4 {.push stack_trace: off, profiler:off.}
5
6 proc rawoutput(s: string) =
7 printf("%s\n", s)
8
9 proc panic(s: string) =
10 rawoutput(s)
11 exit(1)
12
13 {.pop.}