summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-12 10:11:58 +0200
committerAraq <rumpf_a@web.de>2014-08-12 10:11:58 +0200
commit4d863ebb5e0dfc2531837925199a5d9cd6cdaab8 (patch)
tree2dd8dcf6a73447b074a9c615ecd37ed81c8b7c1c /lib/system.nim
parentd1300de5e6ebcca1ef0a6fb0655160c2694f9571 (diff)
downloadNim-4d863ebb5e0dfc2531837925199a5d9cd6cdaab8.tar.gz
fix failed tests due to gcsafe
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 66eda5741..3dc7e308e 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2567,11 +2567,11 @@ when not defined(JS): #and not defined(NimrodVM):
     include "system/assign"
     include "system/repr"
 
-    proc getCurrentException*(): ref E_Base {.compilerRtl, inl.} =
+    proc getCurrentException*(): ref E_Base {.compilerRtl, inl, gcsafe.} =
       ## retrieves the current exception; if there is none, nil is returned.
       result = currException
 
-    proc getCurrentExceptionMsg*(): string {.inline.} =
+    proc getCurrentExceptionMsg*(): string {.inline, gcsafe.} =
       ## retrieves the error message that was attached to the current
       ## exception; if there is none, "" is returned.
       var e = getCurrentException()