prettified re.nim; make some tests green
This commit is contained in:
parent
697789a313
commit
3ba34f1762
7 changed files with 98 additions and 94 deletions
|
|
@ -2,9 +2,9 @@ import os
|
|||
|
||||
proc getDllName: string =
|
||||
result = "mylib.dll"
|
||||
if ExistsFile(result): return
|
||||
if fileExists(result): return
|
||||
result = "mylib2.dll"
|
||||
if ExistsFile(result): return
|
||||
if fileExists(result): return
|
||||
quit("could not load dynamic library")
|
||||
|
||||
proc myImport(s: cstring) {.cdecl, importc, dynlib: getDllName().}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue