Fix for Nim 1.4.x
This commit is contained in:
parent
3e507af8cc
commit
08becf42bf
|
@ -1,6 +1,6 @@
|
||||||
import std/macros
|
import std/macros
|
||||||
|
|
||||||
macro fieldValues*(obj: object): tuple =
|
macro fieldValues*(obj: object): auto =
|
||||||
result = newNimNode(nnkTupleConstr)
|
result = newNimNode(nnkTupleConstr)
|
||||||
let typ = getTypeImpl(obj)
|
let typ = getTypeImpl(obj)
|
||||||
let fields = typ[2]
|
let fields = typ[2]
|
||||||
|
|
Loading…
Reference in New Issue