Attempt to fix build issues in nim-beacon-chain
This commit is contained in:
parent
8fe16bcd9d
commit
5691b05a2f
|
@ -24,7 +24,7 @@ proc findPragma*(pragmas: NimNode, pragmaSym: NimNode): NimNode =
|
||||||
return p
|
return p
|
||||||
|
|
||||||
template readPragma*(field: FieldDescription, pragmaName: static string): NimNode =
|
template readPragma*(field: FieldDescription, pragmaName: static string): NimNode =
|
||||||
let p = field.pragmas.findPragma bindSym(pragmaName)
|
let p = findPragma(field.pragmas, bindSym(pragmaName))
|
||||||
if p != nil and p.len == 2: p[1] else: p
|
if p != nil and p.len == 2: p[1] else: p
|
||||||
|
|
||||||
iterator recordFields*(typeImpl: NimNode): FieldDescription =
|
iterator recordFields*(typeImpl: NimNode): FieldDescription =
|
||||||
|
|
Loading…
Reference in New Issue