Try to let memTracker compile (#8502)

This commit is contained in:
Christopher Dunn 2018-08-05 02:53:10 -05:00 • committed by Andreas Rumpf
commit cc1fd50b27
2 changed files with 11 additions and 11 deletions

View file

@ -73,12 +73,12 @@ proc addEntry(entry: LogEntry) =
let x = cast[proc() {.nimcall, tags: [], gcsafe, locks: 0.}](writeStackTrace)
x()
quit 1
if gLog.count > high(gLog.data):
gLogger(gLog)
gLog.count = 0
gLog.data[gLog.count] = entry
inc gLog.count
gLog.disabled = false
#if gLog.count > high(gLog.data):
# gLogger(gLog)
# gLog.count = 0
#gLog.data[gLog.count] = entry
#inc gLog.count
#gLog.disabled = false
proc memTrackerWrite(address: pointer; size: int; file: cstring; line: int) {.compilerProc.} =
addEntry LogEntry(op: "write", address: address,