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:
parent
d3702a4dc3
commit
939df8cbda
4 changed files with 35 additions and 0 deletions
13
tests/avr/panicoverride.nim
Normal file
13
tests/avr/panicoverride.nim
Normal 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.}
|
||||
Loading…
Add table
Add a link
Reference in a new issue