addQuitProc => addExitProc (#16765)

This commit is contained in:
Timothee Cour
2021-01-22 10:51:11 -08:00
committed by GitHub
parent 8f1f0bd1da
commit 18b983d7e3
7 changed files with 21 additions and 12 deletions

View File

@@ -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.}