$ op for the specialized Confutils types
This commit is contained in:
parent
6e5d570490
commit
6f109184e3
|
@ -17,9 +17,14 @@ type
|
|||
Unspecified* = object
|
||||
Txt* = object
|
||||
|
||||
SomeDistinctString = InputFile|InputDir|OutPath|OutDir|OutFile
|
||||
|
||||
template `/`*(dir: InputDir|OutDir, path: string): auto =
|
||||
string(dir) / path
|
||||
|
||||
template `$`*(x: SomeDistinctString): string =
|
||||
string(x)
|
||||
|
||||
template desc*(v: string) {.pragma.}
|
||||
template name*(v: string) {.pragma.}
|
||||
template abbr*(v: string) {.pragma.}
|
||||
|
|
Loading…
Reference in New Issue