From 4d863ebb5e0dfc2531837925199a5d9cd6cdaab8 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 12 Aug 2014 10:11:58 +0200 Subject: fix failed tests due to gcsafe --- lib/system.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/system.nim') 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() -- cgit 1.4.1-2-gfad0