(cherry picked from commit 0f53b129b7)
This commit is contained in:
flywind
2020-11-13 15:28:22 +08:00
committed by narimiran
parent a983c6a843
commit 36429cabda

View File

@@ -329,6 +329,8 @@ proc setPointer*(x: Any, y: pointer) =
assert x.rawType.kind in pointerLike
if y != nil:
genericAssign(x.value, y, x.rawType)
else:
cast[ppointer](x.value)[] = nil
proc fieldsAux(p: pointer, n: ptr TNimNode,
ret: var seq[tuple[name: cstring, any: Any]]) =