parent
d365f1a81a
commit
244bf68fb0
2 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ else:
|
|||
var SEGV_MAPERR {.importc, header: "<signal.h>".}: cint
|
||||
|
||||
{.push stackTrace: off.}
|
||||
proc segfaultHandler(sig: cint, y: var SigInfo, z: pointer) {.noconv.} =
|
||||
proc segfaultHandler(sig: cint, y: ptr SigInfo, z: pointer) {.noconv.} =
|
||||
if y.si_code == SEGV_MAPERR:
|
||||
{.gcsafe.}:
|
||||
raise se
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue