view service/iot2/esp32_main/panicoverride.nim @ 1610:6fc48ef4c696

mysteriously lost an important line
author drewp@bigasterisk.com
date Mon, 06 Sep 2021 18:07:28 -0700
parents 17ff9322328b
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.}