| 552 | |
| 553 | |
| 554 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 555 | if (ref >= 0) { |
| 556 | t = lua_absindex(L, t); |
| 557 | lua_rawgeti(L, t, freelist); |
| 558 | lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */ |
| 559 | lua_pushinteger(L, ref); |
| 560 | lua_rawseti(L, t, freelist); /* t[freelist] = ref */ |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | /* }====================================================== */ |
| 565 |
nothing calls this directly
no test coverage detected