[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: bin2c.lua
- From: Tomas Guisasola Gorham <tomas@...>
- Date: Tue, 25 Sep 2007 07:24:19 -0300 (BRT)
> I have a somewhat related question: does anybody know of
> an interpreted-lua -> c-api-lua converter?
Have you tried luac -> bin2c -> cc ? We have done that
luac -o file.lc file.lua
bin2c file.lc > file.lch
In your .c you could just #include the .lch file. You
should check the result of bin2c; in our case we had to change
something (a simple sed command line did the job).
Hope this helps,