mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
22 lines
702 B
Nim
22 lines
702 B
Nim
#
|
|
#
|
|
# Nim's Runtime Library
|
|
# (c) Copyright 2012 Andreas Rumpf
|
|
#
|
|
# See the file "copying.txt", included in this
|
|
# distribution, for details about the copyright.
|
|
#
|
|
|
|
# Headers for procs that the code generator depends on ("compilerprocs")
|
|
|
|
type
|
|
LibHandle = pointer # private type
|
|
ProcAddr = pointer # library loading and loading of procs:
|
|
{.deprecated: [TLibHandle: LibHandle, TProcAddr: ProcAddr].}
|
|
|
|
proc nimLoadLibrary(path: string): LibHandle {.compilerproc.}
|
|
proc nimUnloadLibrary(lib: LibHandle) {.compilerproc.}
|
|
proc nimGetProcAddr(lib: LibHandle, name: cstring): ProcAddr {.compilerproc.}
|
|
|
|
proc nimLoadLibraryError(path: string) {.compilerproc, noinline.}
|