summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-09 09:10:47 +0200
committerAraq <rumpf_a@web.de>2019-04-09 09:11:44 +0200
commitf44e1e2214b2d40f078409aa42418da76a5a6d44 (patch)
tree7982ccf604f0c8a789bef7503b196d0d510e27af /lib/system
parent2c645eded565d8f27b7e85e741dd90d2b54b17b2 (diff)
downloadNim-f44e1e2214b2d40f078409aa42418da76a5a6d44.tar.gz
make tests green again
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/memory.nim8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/system/memory.nim b/lib/system/memory.nim
index acfc7dc5e..13bddf211 100644
--- a/lib/system/memory.nim
+++ b/lib/system/memory.nim
@@ -1,3 +1,5 @@
+{.push stack_trace: off.}
+
 const useLibC = not defined(nimNoLibc)
 
 when not defined(nimHasHotCodeReloading):
@@ -6,7 +8,7 @@ when not defined(nimHasHotCodeReloading):
 when useLibC:
   import ansi_c
 
-proc nimCopyMem*(dest, source: pointer, size: Natural) {.compilerproc, inline.} =
+proc nimCopyMem*(dest, source: pointer, size: Natural) {.nonReloadable, compilerproc, inline.} =
   when useLibC:
     c_memcpy(dest, source, size)
   else:
@@ -31,7 +33,7 @@ proc nimSetMem*(a: pointer, v: cint, size: Natural) {.nonReloadable, inline.} =
 proc nimZeroMem*(p: pointer, size: Natural) {.compilerproc, nonReloadable, inline.} =
   nimSetMem(p, 0, size)
 
-proc nimCmpMem*(a, b: pointer, size: Natural): cint {.compilerproc, inline.} =
+proc nimCmpMem*(a, b: pointer, size: Natural): cint {.compilerproc, nonReloadable, inline.} =
   when useLibC:
     c_memcmp(a, b, size)
   else:
@@ -51,3 +53,5 @@ proc nimCStrLen*(a: cstring): csize {.compilerproc, nonReloadable, inline.} =
     while a[] != 0:
       a = cast[ptr byte](cast[uint](a) + 1)
       inc result
+
+{.pop.}