lua-users home
lua-l archive

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


I think that I misunderstood your question. You are perhaps looking for a *automatic* garbage collector for C. Lua is in this case *not* what you are looking for! Lua garbage collector does not scan the content of userdata (or any other type) to find "pointers" to used data. An Lua value can be collected if it no more on the stack nor referenced in another accessible Lua value.