summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-07-27 18:19:18 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-07-27 18:19:18 +0200
commit4ec91a30c4ab4bdb45f9805168f124205235d19c (patch)
tree72e5dd92b9c9e07714ceabd0d08f74f4e08f06fe
parenta28090a8f28e59226dbeacf0af578c4ba656cb7d (diff)
downloadNim-4ec91a30c4ab4bdb45f9805168f124205235d19c.tar.gz
allocators: add deallocAll proc pointer
-rw-r--r--lib/core/allocators.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/core/allocators.nim b/lib/core/allocators.nim
index 74a8d3753..f652f0d85 100644
--- a/lib/core/allocators.nim
+++ b/lib/core/allocators.nim
@@ -15,6 +15,7 @@ type
     alloc*: proc (a: Allocator; size: int; alignment: int = 8): pointer {.nimcall.}
     dealloc*: proc (a: Allocator; p: pointer; size: int) {.nimcall.}
     realloc*: proc (a: Allocator; p: pointer; oldSize, newSize: int): pointer {.nimcall.}
+    deallocAll*: proc (a: Allocator) {.nimcall.}
     flags*: set[AllocatorFlag]
 
 var