| 686 | |
| 687 | |
| 688 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 689 | if (ref >= 0) { |
| 690 | t = lua_absindex(L, t); |
| 691 | lua_rawgeti(L, t, freelist); |
| 692 | lua_assert(lua_isinteger(L, -1)); |
| 693 | lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */ |
| 694 | lua_pushinteger(L, ref); |
| 695 | lua_rawseti(L, t, freelist); /* t[freelist] = ref */ |
| 696 | } |
| 697 | } |
| 698 | |
| 699 | /* }====================================================== */ |
| 700 |
nothing calls this directly
no test coverage detected