| 714 | |
| 715 | |
| 716 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 717 | if (ref >= 0) { |
| 718 | t = lua_absindex(L, t); |
| 719 | lua_rawgeti(L, t, 1); |
| 720 | lua_assert(lua_isinteger(L, -1)); |
| 721 | lua_rawseti(L, t, ref); /* t[ref] = t[1] */ |
| 722 | lua_pushinteger(L, ref); |
| 723 | lua_rawseti(L, t, 1); /* t[1] = ref */ |
| 724 | } |
| 725 | } |
| 726 | |
| 727 | /* }====================================================== */ |
| 728 |
nothing calls this directly
no test coverage detected