[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Clarify user data in 4.1
- From: Roberto Ierusalimschy <rieru@...>
- Date: Tue, 15 Jan 2002 10:05:07 -0600 (CST)
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