nil
This commit is contained in:
parent
8ec3c141ae
commit
0f53b129b7
1 changed files with 2 additions and 0 deletions
|
|
@ -329,6 +329,8 @@ proc setPointer*(x: Any, y: pointer) =
|
||||||
assert x.rawType.kind in pointerLike
|
assert x.rawType.kind in pointerLike
|
||||||
if y != nil:
|
if y != nil:
|
||||||
genericAssign(x.value, y, x.rawType)
|
genericAssign(x.value, y, x.rawType)
|
||||||
|
else:
|
||||||
|
cast[ppointer](x.value)[] = nil
|
||||||
|
|
||||||
proc fieldsAux(p: pointer, n: ptr TNimNode,
|
proc fieldsAux(p: pointer, n: ptr TNimNode,
|
||||||
ret: var seq[tuple[name: cstring, any: Any]]) =
|
ret: var seq[tuple[name: cstring, any: Any]]) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue