newruntime: progress
This commit is contained in:
parent
fda1352ccf
commit
c3067e36bb
12 changed files with 57 additions and 46 deletions
|
|
@ -72,10 +72,7 @@ proc unloadLib*(lib: LibHandle) {.gcsafe.}
|
|||
|
||||
proc raiseInvalidLibrary*(name: cstring) {.noinline, noreturn.} =
|
||||
## raises an `EInvalidLibrary` exception.
|
||||
var e: ref LibraryError
|
||||
new(e)
|
||||
e.msg = "could not find symbol: " & $name
|
||||
raise e
|
||||
raise newException(LibraryError, "could not find symbol: " & $name)
|
||||
|
||||
proc symAddr*(lib: LibHandle, name: cstring): pointer {.gcsafe.}
|
||||
## retrieves the address of a procedure/variable from `lib`. Returns nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue