allocators: add deallocAll proc pointer

This commit is contained in:
Andreas Rumpf
2018-07-27 18:19:18 +02:00
parent a28090a8f2
commit 4ec91a30c4

View File

@@ -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