make parseopt work with DLLs on Unix
This commit is contained in:
parent
e02e057a70
commit
a42150f9a8
1 changed files with 8 additions and 7 deletions
|
|
@ -227,6 +227,7 @@ proc next*(p: var OptParser) {.rtl, extern: "npo$1".} =
|
|||
inc p.idx
|
||||
p.pos = 0
|
||||
|
||||
when declared(os.paramCount):
|
||||
proc cmdLineRest*(p: OptParser): TaintedString {.rtl, extern: "npo$1".} =
|
||||
## retrieves the rest of the command line that has not been parsed yet.
|
||||
var res = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue