Re: luajit2 head and Lanes 2.07, very strange!
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: luajit2 head and Lanes 2.07, very strange!
- From: zhiguo zhao <zhaozg@...>
- Date: Wed, 1 Dec 2010 17:30:11 +0800
I found lua_dump be used in inter_copy_func() of tools.c.
and lua_dump return 1, failed.
I Look at
http://lua-users.org/lists/lua-l/2010-03/msg00064.html,
maybe now lj2 not support lua_dump.
finally. I look lj_api.c, found this.
----------------------------------------------------------------------------
LUA_API int lua_dump(lua_State *L, lua_Writer writer, void *data)
{
api_checknelems(L, 1);
UNUSED(L); UNUSED(writer); UNUSED(data);
return 1; /* Error, not supported. */
}
---------------------------------------------------------------------------
So, I need wait lj2 to support lua_dump.
2010年11月30日 Benoit Germain <bgermain@ubisoft.fr>
> On Behalf Of Mike Pall
> Sent: Tuesday, November 30, 2010 4:07 PM
> To: Lua mailing list
> Subject: Re: luajit2 head and Lanes 2.07, very strange!
>
> Anyway, there are no more tests needed. Lanes simply shouldn't
> make such an assumption and needs to be fixed by the author(s).
> E.g. lua_topointer + lua_pushlightuserdata are much more effective
> for use in cross-state caching.
Right, I'll fix this sometime soon (I hope :-).
Benoit