summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 9968cd49d..b75f9022d 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1871,6 +1871,14 @@ when not defined(EcmaScript) and not defined(NimrodVM):
   else:
     initStackBottom()
     initGC()
+
+  proc setControlCHook*(hook: proc () {.noconv.})
+    ## allows you to override the behaviour of your application when CTRL+C
+    ## is pressed. Only one such hook is supported.
+    
+  proc writeStackTrace*()
+    ## writes the current stack trace to ``stderr``. This is only works
+    ## for debug builds.
     
   {.push stack_trace: off.}
   include "system/excpt"