Move readPragma to std_shims

This commit is contained in:
Zahary Karadjov 2019-07-03 02:31:36 +03:00
parent faca1407a5
commit 14da5a0077
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609

View File

@ -269,10 +269,6 @@ proc load*(Configuration: type,
type
FieldSetter = proc (cfg: var Configuration, val: TaintedString): bool {.nimcall.}
template readPragma(field, name): NimNode =
let p = field.pragmas.findPragma bindSym(name)
if p != nil and p.len == 2: p[1] else: p
macro generateFieldSetters(RecordType: type): untyped =
var recordDef = RecordType.getType[1].getImpl
let makeDefaultValue = bindSym"makeDefaultValue"