ensure the avr example keeps compiling (#17663)

* ensure the avr example keeps compiling

* Update tests/avr/thello.nim

* now compiles properly
This commit is contained in:
Andreas Rumpf 2021-04-07 13:40:57 +02:00 • committed by GitHub
commit 939df8cbda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,13 @@
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.}