From 4ec91a30c4ab4bdb45f9805168f124205235d19c Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 27 Jul 2018 18:19:18 +0200 Subject: [PATCH] allocators: add deallocAll proc pointer --- lib/core/allocators.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/allocators.nim b/lib/core/allocators.nim index 74a8d3753c..f652f0d851 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