I found lua_dump be used in inter_copy_func() of tools.c.
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