[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Wishlists and Modules (was [ANN] libmc)
- From: Peter Cawley <lua@...>
- Date: Fri, 4 Sep 2009 00:28:00 +0100
On Fri, Sep 4, 2009 at 12:22 AM, Andre de
Leiradella<aleirade@sct.microlink.com.br> wrote:
> Thanks, but how do I handle packages that include Lua files?
Some some bin2c variant to convert the Lua source files to C byte
arrays, embed said arrays in C application, then call luaL_loadbuffer
for each one and store in in package.preload. It shouldn't be too hard
to write a script which converts a directory of Lua files into a C
file which contains the arrays and code to load them.