Advertisement
Guest User

Untitled

a guest
Oct 25th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.24 KB | None | 0 0
  1. # Compile with --app:lib --noMain
  2. {.pragma: rtl, exportc, dynlib, cdecl.}
  3.  
  4. proc myProc(): string {.importc, extern: "myProc_hYuBLdJpubhzhpm5iVbs7Q".}
  5.  
  6.  
  7. proc setup*() {.rtl.} =
  8.   echo "Hello from lib"
  9.  
  10. proc call*() {.rtl.} =
  11.  echo myProc()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement