diff options
author | def <dennis@felsin9.de> | 2015-01-23 23:18:20 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-01-23 23:18:20 +0100 |
commit | dfdd84f2c9b9a2f1e2e4c649f971a6da22d1bd8e (patch) | |
tree | 88ef6664be0f5e8cc790409b517ded1fa5d4e28b /lib | |
parent | afd8a902a9e83ff7f1d70d3bd26f96ce53f0b889 (diff) | |
download | Nim-dfdd84f2c9b9a2f1e2e4c649f971a6da22d1bd8e.tar.gz |
Make ESTP compile
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/gc.nim | 2 | ||||
-rw-r--r-- | lib/system/profiler.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 58587cf7f..844f28690 100644 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -33,7 +33,7 @@ const when withRealTime and not declared(getTicks): include "system/timers" when defined(memProfiler): - proc nimProfile(requestedSize: int) + proc nimProfile(requestedSize: int) {.benign.} const rcIncrement = 0b1000 # so that lowest 3 bits are not touched diff --git a/lib/system/profiler.nim b/lib/system/profiler.nim index 96ab6abc7..6d6863caa 100644 --- a/lib/system/profiler.nim +++ b/lib/system/profiler.nim @@ -51,7 +51,7 @@ proc captureStackTrace(f: PFrame, st: var TStackTrace) = when defined(memProfiler): type - TMemProfilerHook* = proc (st: TStackTrace, requestedSize: int) {.nimcall.} + TMemProfilerHook* = proc (st: TStackTrace, requestedSize: int) {.nimcall, benign.} var profilerHook*: TMemProfilerHook ## set this variable to provide a procedure that implements a profiler in |