parent
73e6b229aa
commit
036c52f0b6
3 changed files with 32 additions and 1 deletions
10
tests/cpp/amodule.nim
Normal file
10
tests/cpp/amodule.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import os
|
||||
|
||||
proc findlib: string =
|
||||
let path = getEnv("MYLIB_DOES_NOT_EXIST_PATH")
|
||||
if path.len > 0 and dirExists(path):
|
||||
path / "alib_does_not_matter.dll"
|
||||
else:
|
||||
"alib_does_not_matter.dll"
|
||||
|
||||
proc imported_func*(a: cint): cstring {.importc, dynlib: findlib().}
|
||||
Loading…
Add table
Add a link
Reference in a new issue