mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
14 lines
300 B
Nim
14 lines
300 B
Nim
|
|
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) {.noreturn.} =
|
|
rawoutput(s)
|
|
exit(1)
|
|
|
|
{.pop.} |