Merge pull request #2005 from def-/fix-estp

Make ESTP compile
This commit is contained in:
Andreas Rumpf
2015-01-27 14:29:20 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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