lua-users home
lua-l archive

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


"xenarcher " wrote:
> 
> Say I've got two Lua state objects:
> 
> lua_State *L1, *L2;
> 
> Easy there an easy way of copying stack values L1 to L2 through C
> code?

In lua 5.0 beta there is an undocumented function:

LUA_API void  lua_xmove (lua_State *from, lua_State *to, int n);

I GUESS that this one does the trick?


-- 
"No one knows true heroes, for they speak not of their greatness." -- 
Daniel Remar.
Björn De Meyer 
bjorn.demeyer@pandora.be