[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Best way to find out to what userdata is on the stack?
- From: Mike Pall <mikelu-0703@...>
- Date: Tue, 13 Mar 2007 13:41:55 +0100
Hi,
Lothar Scholz wrote:
> At the moment i'm using an hash table for all my own userdata,
> lookup the pointer there and if found i get a verification that this
> userdata is really a "Foobar" struct.
No hash lookups required if you do it right:
http://lua-users.org/lists/lua-l/2004-07/msg00369.html
Bye,
Mike