Re: How to require mod in archive package such as mpq etc?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: How to require mod in archive package such as mpq etc?
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: 2011年8月18日 12:18:36 +0200
2011年8月14日 l.jay Yuan <pass86@gmail.com>:
> How to require mod in archive package such as mpq etc?
> ll_require ?
You can add a searcher (see package.loaders in the reference manual)
that will look in your archives for the modules. There are searchers
examples on the wiki. For example in [1] replace io.open and file:read
by whatever API call you have to read the archive content. This is
implemented in Lua, but you can do the same in C.
[1] http://lua-users.org/wiki/LuaModulesLoader