the Go GC - initial implementation
This commit is contained in:
parent
6820b2fea9
commit
50e96ad939
10 changed files with 213 additions and 16 deletions
|
|
@ -67,11 +67,11 @@ type
|
|||
pbyteArray = ptr array[0.. 0xffff, int8]
|
||||
|
||||
TGenericSeq {.importc.} = object
|
||||
len, space: int
|
||||
len, space, elemSize: int
|
||||
PGenSeq = ptr TGenericSeq
|
||||
|
||||
const
|
||||
GenericSeqSize = (2 * sizeof(int))
|
||||
GenericSeqSize = (3 * sizeof(int))
|
||||
|
||||
proc genericAssign(dest, src: pointer, mt: PNimType) {.importCompilerProc.}
|
||||
proc genericShallowAssign(dest, src: pointer, mt: PNimType) {.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue