mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
* ensure the avr example keeps compiling * Update tests/avr/thello.nim * now compiles properly
14 lines
287 B
Nim
14 lines
287 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) =
|
|
rawoutput(s)
|
|
exit(1)
|
|
|
|
{.pop.}
|