mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
10 lines
268 B
Nim
10 lines
268 B
Nim
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().} |