New runtime: fix allocator inheritable (#7046)
This commit is contained in:
parent
424532f883
commit
b31151f68e
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
type
|
type
|
||||||
Allocator* {.inheritable.} = ptr object
|
Allocator* = ptr object {.inheritable.}
|
||||||
alloc*: proc (a: Allocator; size: int; alignment: int = 8): pointer {.nimcall.}
|
alloc*: proc (a: Allocator; size: int; alignment: int = 8): pointer {.nimcall.}
|
||||||
dealloc*: proc (a: Allocator; p: pointer; size: int) {.nimcall.}
|
dealloc*: proc (a: Allocator; p: pointer; size: int) {.nimcall.}
|
||||||
realloc*: proc (a: Allocator; p: pointer; oldSize, newSize: int): pointer {.nimcall.}
|
realloc*: proc (a: Allocator; p: pointer; oldSize, newSize: int): pointer {.nimcall.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue