[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bin2c.lua
- From: Tomas Guisasola Gorham <tomas@...>
- Date: Tue, 25 Sep 2007 07:24:19 -0300 (BRT)
Hi Taco
> 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
in Kepler.
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,
Tomás