These are useful when adding things to the Lua registry. From the documentation at http://pgl.yoyo.org/luai/i/luaL_ref: > As long as you do not manually add integer keys into table t, luaL_ref > ensures the uniqueness of the key it returns. This can be done by hand with (say) an `AtomicIsize`, but it's just easier to use these functions. |
||
---|---|---|
.. | ||
lib.rs |