mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* fixes #21195; `std/assertions` continue to use `sysFatal` * try includes * make `std/assertions` self-contained * fixes tests * fixes tests
15 lines
321 B
Nim
15 lines
321 B
Nim
# panicoverride.nim
|
|
|
|
proc printf(fmt: cstring) {.varargs, importc, header:"stdio.h".}
|
|
proc exit(code: cint) {.importc, header:"stdlib.h".}
|
|
|
|
{.push stack_trace: off, profiler:off.}
|
|
|
|
proc rawoutput(s: cstring) =
|
|
printf("RAW: %s\n", s)
|
|
|
|
proc panic(s: cstring) {.noreturn.} =
|
|
printf("PANIC: %s\n", s)
|
|
exit(0)
|
|
|
|
{.pop.} |