os.JoinPath now uses varargs. Some additions to gtk wrappers.

This commit is contained in:
Dominik Picheta 2012-08-19 02:40:21 +01:00
commit 3a4e22de33
3 changed files with 25 additions and 7 deletions

View file

@ -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.