I'm using Lua for a library that exposes a C API, but internally is
using Lua for some of the functionality. I would really like to embed
my Lua modules directly into the binary. Having done some perusing of
Google and friends, it appears that bin2c (from
<http://lua-users.org/wiki/BinToCee>) and the LOOP pre-compilation and
pre-loading scripts (from
<http://loop.luaforge.net/release/preload.html>) both look like fairly
decent possibilities. I was hoping to get some feedback of what
approaches others here have used, and what people have found that
works best. Most of the Lua code that I would like to embed is
written using the Lua 5.1 package model, so that is a consideration
that needs to be kept in mind.
Any feedback would be greatly appreciated.
Thanks!
--
Grant Robinson