lua-users home
lua-l archive

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


Hi,

and another one ...

If you access this userdata often, create a reference using
lua_ref, this speeds up the access very much.

Regards,

  Michael

> -----Original Message-----
> From: owner-lua-l@tecgraf.puc-rio.br
> [mailto:owner-lua-l@tecgraf.puc-rio.br]On Behalf Of John Belmonte
> Sent: Monday, September 24, 2001 3:48
> To: Multiple recipients of list
> Subject: Re: [Newbie] userdata
> 
> 
> Adding to what Christian wrote: if you just want to push a plain 
> pointer and
> don't care about the tag, use the lua_pushuserdata macro.
> 
> -John
> 
>