diff options
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 = |