os.JoinPath now uses varargs. Some additions to gtk wrappers.
This commit is contained in:
parent
2898cc7c0e
commit
3a4e22de33
3 changed files with 25 additions and 7 deletions
|
|
@ -411,7 +411,7 @@ proc JoinPath*(head, tail: string): string {.
|
|||
else:
|
||||
result = head & DirSep & tail
|
||||
|
||||
proc JoinPath*(parts: openarray[string]): string {.noSideEffect,
|
||||
proc JoinPath*(parts: varargs[string]): string {.noSideEffect,
|
||||
rtl, extern: "nos$1OpenArray".} =
|
||||
## The same as `JoinPath(head, tail)`, but works with any number
|
||||
## of directory parts.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue