mirror of https://github.com/status-im/nimplay.git
Add revert as panicoverride :)
This commit is contained in:
parent
ccf2de73e8
commit
c90f37ca5c
|
@ -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.}
|
||||
|
|
Loading…
Reference in New Issue