specialize genericReset (#14398)

* progress
* make tests green
* maybe we also want to reset pointers, dunno
* progress
* cleanup; fixes #13879 [backport:1.2]
This commit is contained in:
Andreas Rumpf 2020-05-19 21:42:53 +02:00 • committed by GitHub
commit b35d370d88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 124 additions and 26 deletions

View file

@ -104,7 +104,7 @@ proc extGetCellType(c: pointer): PNimType {.compilerproc.} =
# used for code generation concerning debugging
result = usrToCell(c).typ
proc unsureAsgnRef(dest: PPointer, src: pointer) {.inline.} =
proc unsureAsgnRef(dest: PPointer, src: pointer) {.inline, compilerproc.} =
dest[] = src
proc internRefcount(p: pointer): int {.exportc: "getRefcount".} =