cgprocs.nim 641 B

123456789101112131415161718192021
  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. proc nimLoadLibrary(path: string): LibHandle {.compilerproc.}
  14. proc nimUnloadLibrary(lib: LibHandle) {.compilerproc.}
  15. proc nimGetProcAddr(lib: LibHandle, name: cstring): ProcAddr {.compilerproc.}
  16. proc nimLoadLibraryError(path: string) {.compilerproc, noinline.}