make --gc:arc --exceptions:quirky work again [backport:1.4] (#16583)
* make --gc:arc --exceptions:quirky work again [backport:1.4] * fixes #16404 [backport:1.4]
This commit is contained in:
parent
80c8f06663
commit
6317e4004d
8 changed files with 49 additions and 17 deletions
14
tests/manyloc/standalone2/panicoverride.nim
Normal file
14
tests/manyloc/standalone2/panicoverride.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
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.}
|
||||
Loading…
Add table
Add a link
Reference in a new issue