| 614 | |
| 615 | |
| 616 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 617 | if (ref >= 0) { |
| 618 | t = lua_absindex(L, t); |
| 619 | lua_rawgeti(L, t, freelist); |
| 620 | lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */ |
| 621 | lua_pushinteger(L, ref); |
| 622 | lua_rawseti(L, t, freelist); /* t[freelist] = ref */ |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | /* }====================================================== */ |
| 627 |
nothing calls this directly
no test coverage detected