| 527 | |
| 528 | |
| 529 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 530 | if (ref >= 0) { |
| 531 | t = abs_index(L, t); |
| 532 | lua_rawgeti(L, t, FREELIST_REF); |
| 533 | lua_rawseti(L, t, ref); /* t[ref] = t[FREELIST_REF] */ |
| 534 | lua_pushinteger(L, ref); |
| 535 | lua_rawseti(L, t, FREELIST_REF); /* t[FREELIST_REF] = ref */ |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | |
| 540 |
no test coverage detected