mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
New runtime: fix allocator inheritable (#7046)
This commit is contained in:
committed by
Andreas Rumpf
parent
424532f883
commit
b31151f68e
@@ -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.}
|
||||
|
||||
Reference in New Issue
Block a user