summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-01-05 00:46:51 +0100
committerAraq <rumpf_a@web.de>2012-01-05 00:46:51 +0100
commit8aa4e4670716f04e6029c24b052c09a4a3cc0ae4 (patch)
tree03d0cf61161cd8f2bf21324b77b5ec3fab6ae17e /lib/system
parent9152193e41c83b1dda3f34e6a630acbf1e1a0134 (diff)
downloadNim-8aa4e4670716f04e6029c24b052c09a4a3cc0ae4.tar.gz
implemented incompleteStruct pragma; embedded debugger works with posix module
Diffstat (limited to 'lib/system')
-rwxr-xr-xlib/system/alloc.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim
index 8bf173fc1..c3478a739 100755
--- a/lib/system/alloc.nim
+++ b/lib/system/alloc.nim
@@ -683,6 +683,10 @@ proc getOccupiedMem(a: TMemRegion): int {.inline.} =
 # ---------------------- thread memory region -------------------------------
 
 template InstantiateForRegion(allocator: expr) =
+  when false:
+    proc interiorAllocatedPtr*(p: pointer): pointer =
+      result = interiorAllocatedPtr(allocator, p)
+
   proc deallocOsPages = deallocOsPages(allocator)
 
   proc alloc(size: int): pointer =