fixes pre-existing quit documentation regression [backport] (#20763)
fixes pre-existing `quit` documentation regression
This commit is contained in:
parent
bae0fb720a
commit
fc8bfd781a
1 changed files with 3 additions and 3 deletions
|
|
@ -2258,6 +2258,9 @@ when defined(js):
|
||||||
|
|
||||||
when defined(nimNoQuit):
|
when defined(nimNoQuit):
|
||||||
proc quit*(errorcode: int = QuitSuccess) = discard "ignoring quit"
|
proc quit*(errorcode: int = QuitSuccess) = discard "ignoring quit"
|
||||||
|
|
||||||
|
elif defined(nimdoc):
|
||||||
|
proc quit*(errorcode: int = QuitSuccess) {.magic: "Exit", noreturn.}
|
||||||
## Stops the program immediately with an exit code.
|
## Stops the program immediately with an exit code.
|
||||||
##
|
##
|
||||||
## Before stopping the program the "exit procedures" are called in the
|
## Before stopping the program the "exit procedures" are called in the
|
||||||
|
|
@ -2286,9 +2289,6 @@ when defined(nimNoQuit):
|
||||||
## It does *not* call the garbage collector to free all the memory,
|
## It does *not* call the garbage collector to free all the memory,
|
||||||
## unless an `addExitProc` proc calls `GC_fullCollect <#GC_fullCollect>`_.
|
## unless an `addExitProc` proc calls `GC_fullCollect <#GC_fullCollect>`_.
|
||||||
|
|
||||||
elif defined(nimdoc):
|
|
||||||
proc quit*(errorcode: int = QuitSuccess) {.magic: "Exit", noreturn.}
|
|
||||||
|
|
||||||
elif defined(genode):
|
elif defined(genode):
|
||||||
proc quit*(errorcode: int = QuitSuccess) {.inline, noreturn.} =
|
proc quit*(errorcode: int = QuitSuccess) {.inline, noreturn.} =
|
||||||
rawQuit(errorcode)
|
rawQuit(errorcode)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue