lua-users home
lua-l archive

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


This is what I do to put the output of luac into a C constant:

https://github.com/axkibe/lsyncd/blob/master/bin2carray.lua

Maybe a bit naive, it doesn't strip debug (and error information!),
but it works. For the PC where you don't whine about every byte
perfect enough.

On Sun, Dec 4, 2011 at 11:24 PM, Antonio Scuri <scuri@tecgraf.puc-rio.br> wrote:
>  Hi,
>
>  I'm looking for tools to help embed Lua files into C/C++ libraries.
>
>  For now I only have found two: LHF's lstrip and LuaSrcDiet.
>
>  Are anyone using these tools regularly?
>
>  Are those tools compatible with Lua 5.2?
>
>  Are there other tools?
>
> Thanks,
> Scuri
>
>
>