m15955_main.nim 234 B

123456789101112
  1. import stdtest/specialpaths
  2. import std/os
  3. const buildLib = buildDir / "libD20220923T19380"
  4. {.passL: buildLib.}
  5. proc add*(a, b: int):int {.cdecl, importc.}
  6. proc sub*(a, b: int):int {.cdecl, importc.}
  7. echo add(10, 5)
  8. echo sub(10, 5)