summary refs log blame commit diff stats
path: root/tests/cpp/amodule.nim
blob: 2f3e34051e5760b06c29eee06eb55d5fb76116f3 (plain) (tree)
1
2
3
4
5
6
7
8
9
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().}