parent
37986d0ba8
commit
8252c65cf2
1 changed files with 6 additions and 3 deletions
|
|
@ -2015,9 +2015,12 @@ proc `$`*[Enum: enum](x: Enum): string {.magic: "EnumToStr", noSideEffect.}
|
||||||
## used instead. (In other words: *Overwriting* is possible.)
|
## used instead. (In other words: *Overwriting* is possible.)
|
||||||
|
|
||||||
# undocumented:
|
# undocumented:
|
||||||
proc getRefcount*[T](x: ref T): int {.importc: "getRefcount", noSideEffect.}
|
proc getRefcount*[T](x: ref T): int {.importc: "getRefcount", noSideEffect,
|
||||||
proc getRefcount*(x: string): int {.importc: "getRefcount", noSideEffect.}
|
deprecated: "the refcount never was reliable, the GC does not use traditional refcounting".}
|
||||||
proc getRefcount*[T](x: seq[T]): int {.importc: "getRefcount", noSideEffect.}
|
proc getRefcount*(x: string): int {.importc: "getRefcount", noSideEffect,
|
||||||
|
deprecated: "the refcount never was reliable, the GC does not use traditional refcounting".}
|
||||||
|
proc getRefcount*[T](x: seq[T]): int {.importc: "getRefcount", noSideEffect,
|
||||||
|
deprecated: "the refcount never was reliable, the GC does not use traditional refcounting".}
|
||||||
## retrieves the reference count of an heap-allocated object. The
|
## retrieves the reference count of an heap-allocated object. The
|
||||||
## value is implementation-dependent.
|
## value is implementation-dependent.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue