[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: loading Lua DLLs from an archive file?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 9 Dec 2008 08:38:09 -0200
> If the DLL you want to package are Lua binary modules, you can also
> statically link them in your executable, and with the help of the
> preload searcher it will be transparent to your application and other
> Lua modules (ie. you will still load them through require).
Just for the record: this works transparently if luaopen_xxx in your C module
calls luaL_register with a non-null name, because luaL_register then sets
the corresponding field in package.loaded.