diff options
author | Araq <rumpf_a@web.de> | 2012-01-05 00:46:51 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-01-05 00:46:51 +0100 |
commit | 8aa4e4670716f04e6029c24b052c09a4a3cc0ae4 (patch) | |
tree | 03d0cf61161cd8f2bf21324b77b5ec3fab6ae17e /lib/system | |
parent | 9152193e41c83b1dda3f34e6a630acbf1e1a0134 (diff) | |
download | Nim-8aa4e4670716f04e6029c24b052c09a4a3cc0ae4.tar.gz |
implemented incompleteStruct pragma; embedded debugger works with posix module
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/alloc.nim | 4 |
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 = |