diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/service/iot2/panicoverride.nim	Thu Jan 23 21:00:47 2020 -0800
@@ -0,0 +1,13 @@
+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.}