view service/iot2/esp32_main/panicoverride.nim @ 1533:a598d2141587

more mqtt_to_rdf renames. bring in basic LitElement setup for the debug page Ignore-this: 85e2ab49915e44b08219e537fab21870 darcs-hash:f2d312ec10bb4a33c501a24bd7d11a1f35673f25
author drewp <drewp@bigasterisk.com>
date Sat, 08 Feb 2020 04:02:22 -0800
parents 44aae4efedf6
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.}