summary refs log tree commit diff stats
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2015-01-23 01:51:09 +0100
committerdef <dennis@felsin9.de>2015-01-23 01:51:09 +0100
commit126f9f57cd9473188ba3da7c504295e44b7b8d2c (patch)
tree46c0c75bddf4ac9efa0850638eb77e054b510dde
parentcf60f9d1ac362f32db6d6f03ad5111df4cd9f3bc (diff)
downloadNim-126f9f57cd9473188ba3da7c504295e44b7b8d2c.tar.gz
setControlCHook's parameter is not nil now
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 57d92b28e..69a77b89b 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2509,7 +2509,7 @@ when not defined(JS): #and not defined(NimrodVM):
     initGC()
 
   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
       ## is pressed. Only one such hook is supported.