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