[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: loadlib for Mac OS X
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 23 Dec 2004 11:48:57 -0200
> A general loadlib request: Lua 5.1 has an OS-independent wrapper for DL
> calls. Since I'm in the process of integrating Bruno Haible's av_call
> into 5.1, I would need the Lua dl functions split up into the dl access
> and the symbol lookup part.
Another option is for loadlib to cache the DL handle. Whenever you call
loadlib("bib", "foo") it first looks up whether bib is already loaded,
and if so reuses the same handle. That way you can call loadlib over the
same library for diferent functions without reloading the library.