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