[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LUA missing lua_pushuserdata()?
- From: "Juris Kalnins" <juris@...>
- Date: Wed, 07 Oct 2009 09:47:34 +0300
On Wed, 07 Oct 2009 09:37:18 +0300, Sean Conner <firstname.lastname@example.org> wrote:
The reason I'm using the userdata and not a lightuserdata is the
can attach a metatable to, which would simplify the Lua code a bit.
you _can_ set global metatable for all lightuserdata. and use
some logic in C code to detect what kind of data pointer points to, and
call appropriate functions depending on that.