mirror of
https://github.com/status-im/nim-confutils.git
synced 2025-01-21 01:18:59 +00:00
Move readPragma to std_shims
This commit is contained in:
parent
faca1407a5
commit
14da5a0077
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user