lua-users home
lua-l archive

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


On Mon, 14 Jan 2002, Curt Carpenter wrote:

> So what's the best way in 4.1 to get a void* from C to Lua, and back,
> since lua_pushusertag and lua_pushuserdata are not in the tags
> compatibility layer?

The natural way is to use lua_newuserdatabox. The only difference between
this new function and the old lua_pushuserdata is that it does not
coalesce identical pointers into the same userdata.

-- Roberto