cgprocs.nim 702 B

12345678910111213141516171819202122
  1. #
  2. #
  3. # Nim's Runtime Library
  4. # (c) Copyright 2012 Andreas Rumpf
  5. #
  6. # See the file "copying.txt", included in this
  7. # distribution, for details about the copyright.
  8. #
  9. # Headers for procs that the code generator depends on ("compilerprocs")
  10. type
  11. LibHandle = pointer # private type
  12. ProcAddr = pointer # library loading and loading of procs:
  13. {.deprecated: [TLibHandle: LibHandle, TProcAddr: ProcAddr].}
  14. proc nimLoadLibrary(path: string): LibHandle {.compilerproc.}
  15. proc nimUnloadLibrary(lib: LibHandle) {.compilerproc.}
  16. proc nimGetProcAddr(lib: LibHandle, name: cstring): ProcAddr {.compilerproc.}
  17. proc nimLoadLibraryError(path: string) {.compilerproc, noinline.}