New runtime: fix allocator inheritable (#7046)

This commit is contained in:
Dmitry Atamanov
2018-01-09 13:22:29 +03:00
committed by Andreas Rumpf
parent 424532f883
commit b31151f68e

View File

@@ -8,7 +8,7 @@
#
type
Allocator* {.inheritable.} = ptr object
Allocator* = ptr object {.inheritable.}
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.}