1 2 3 4 5 6
# Test the new beforeQuit variable: proc myExit() {.noconv.} = write(stdout, "just exiting...\n") addQuitProc(myExit)