lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Remo Dentato <> wrote:
>  I was looking for a way to package my C/lua application in a single 
> executable and the method offered by srlua (thanks Luiz!) is appealing 
> to me because I could offer to advanced users the ability of modifying 
> the lua parts and generate a new executable without requiring a C compiler.
>  It seems however that srlua deals with a single lua file while I have 
> some modules and lua files that use "require()" to load them.

How about taking luac.c (especially the combine() function used to bind
multiple .lua files) and adding the srlua glue stuff, so that the
compiler uses this as a sort of "backend" to produce executables? At
least, this worked for me.

cheers  thomasl

web :