lua-users home
lua-l archive

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


On 6/17/07, Mark Edgar <medgar123@gmail.com> wrote:
On 6/16/07, Tony Finch <dot@dotat.at> wrote:
> I have been using a helper program to make this kind of array, but I would
> have thought that it's a common enough requirement to build in to luac:

There's bin2c.c in Lua 5.0 distributions, and this one for Lua 5.1:
http://lua-users.org/wiki/BinTwoCee

    -Mark

well, use the oringinal bin2c, then change lua_dobuffer to
luaL_loadbuffer, then pcall it will solve the problem.