| 541 | |
| 542 | |
| 543 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 544 | if (ref >= 0) { |
| 545 | t = lua_absindex(L, t); |
| 546 | lua_rawgeti(L, t, freelist); |
| 547 | lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */ |
| 548 | lua_pushinteger(L, ref); |
| 549 | lua_rawseti(L, t, freelist); /* t[freelist] = ref */ |
| 550 | } |
| 551 | } |
| 552 | |
| 553 | /* }====================================================== */ |
| 554 |
nothing calls this directly
no test coverage detected