Re: embedded bytecode, was Re: extension for lua bytecode files
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: embedded bytecode, was Re: extension for lua bytecode files
- From: "Sherry Zhang" <yuleopen@...>
- Date: 2007年6月18日 10:41:02 +0800
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.