mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-05 21:44:46 +00:00
addQuitProc => addExitProc (#16765)
This commit is contained in:
@@ -5,9 +5,11 @@ just exiting...
|
||||
joinable: false
|
||||
"""
|
||||
|
||||
# Test `addQuitProc`
|
||||
# Test `addQuitProc` (now deprecated by `addExitProc`)
|
||||
|
||||
proc myExit() {.noconv.} =
|
||||
write(stdout, "just exiting...\n")
|
||||
|
||||
{.push warning[deprecated]: off.}
|
||||
addQuitProc(myExit)
|
||||
{.pop.}
|
||||
|
||||
Reference in New Issue
Block a user