On the Lua side of pushObject we have a weak table that maps C pointers to their Lua wrappers, so that we can return the existing LuaUDObject. You just have to make sure you retain it if you hold a reference to it on the C side.
On the Lua side of pushObject we have a weak table that maps C pointers to their Lua wrappers, so that we can return the existing LuaUDObject. You just have to make sure you retain it if you hold a reference to it on the C side.