lua-users home
lua-l archive

Re: Can I increment the ref count for a userdata stored in another userdata?

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


Sam Roberts wrote:
I have a userdata, it can have a reference to another userdata inside
it. I don't want the referenced userdata garbage collected until there
isn't a reference to it from C code anymore.
Is luaL_ref() what I want?
Sounds like it.
--adam

AltStyle によって変換されたページ (->オリジナル) /