configuration system supports %= to access environment variables
This commit is contained in:
parent
1314e91ef5
commit
0b5c42f405
4 changed files with 20 additions and 12 deletions
|
|
@ -158,7 +158,7 @@ proc getValue(t: StringTableRef, flags: set[FormatFlag], key: string): string =
|
|||
else: result = ""
|
||||
if result.len == 0:
|
||||
if useKey in flags: result = '$' & key
|
||||
elif not (useEmpty in flags): raiseFormatException(key)
|
||||
elif useEmpty notin flags: raiseFormatException(key)
|
||||
|
||||
proc newStringTable*(mode: StringTableMode): StringTableRef {.
|
||||
rtl, extern: "nst$1".} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue