abort is noreturn (#12061)
This commit is contained in:
parent
1ccff0324c
commit
66a8856152
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ proc c_strcmp*(a, b: cstring): cint {.
|
||||||
proc c_strlen*(a: cstring): csize {.
|
proc c_strlen*(a: cstring): csize {.
|
||||||
importc: "strlen", header: "<string.h>", noSideEffect.}
|
importc: "strlen", header: "<string.h>", noSideEffect.}
|
||||||
proc c_abort*() {.
|
proc c_abort*() {.
|
||||||
importc: "abort", header: "<stdlib.h>", noSideEffect.}
|
importc: "abort", header: "<stdlib.h>", noSideEffect, noreturn.}
|
||||||
|
|
||||||
|
|
||||||
when defined(linux) and defined(amd64):
|
when defined(linux) and defined(amd64):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue