Merge pull request #2001 from def-/fix-system
setControlCHook's parameter is not nil now
This commit is contained in:
commit
7a4f29acc1
1 changed files with 1 additions and 1 deletions
|
|
@ -2509,7 +2509,7 @@ when not defined(JS): #and not defined(NimrodVM):
|
||||||
initGC()
|
initGC()
|
||||||
|
|
||||||
when not defined(NimrodVM):
|
when not defined(NimrodVM):
|
||||||
proc setControlCHook*(hook: proc () {.noconv.})
|
proc setControlCHook*(hook: proc () {.noconv.} not nil)
|
||||||
## allows you to override the behaviour of your application when CTRL+C
|
## allows you to override the behaviour of your application when CTRL+C
|
||||||
## is pressed. Only one such hook is supported.
|
## is pressed. Only one such hook is supported.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue