diff --git a/examples/panicoverride.nim b/examples/panicoverride.nim index f6b46ca..c122d82 100644 --- a/examples/panicoverride.nim +++ b/examples/panicoverride.nim @@ -1,4 +1,6 @@ {.push stack_trace: off, profiler:off.} -proc rawoutput(s: string) = discard +proc revert(dataOffset: pointer; length: int32) {.noreturn, cdecl, importc.} +proc rawoutput(s: string) = + revert(cstring(s), s.len.int32) proc panic(s: string) = rawoutput(s) {.pop.}