lua-users home
lua-l archive

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


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>


> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org]
> 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