lua-users home
lua-l archive

[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