diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-07-27 18:19:18 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-27 18:19:18 +0200 |
commit | 4ec91a30c4ab4bdb45f9805168f124205235d19c (patch) | |
tree | 72e5dd92b9c9e07714ceabd0d08f74f4e08f06fe | |
parent | a28090a8f28e59226dbeacf0af578c4ba656cb7d (diff) | |
download | Nim-4ec91a30c4ab4bdb45f9805168f124205235d19c.tar.gz |
allocators: add deallocAll proc pointer
-rw-r--r-- | lib/core/allocators.nim | 1 |
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 |