| 502 | |
| 503 | |
| 504 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 505 | if (ref >= 0) { |
| 506 | t = abs_index(L, t); |
| 507 | lua_rawgeti(L, t, FREELIST_REF); |
| 508 | lua_rawseti(L, t, ref); /* t[ref] = t[FREELIST_REF] */ |
| 509 | lua_pushinteger(L, ref); |
| 510 | lua_rawseti(L, t, FREELIST_REF); /* t[FREELIST_REF] = ref */ |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | |
| 515 |
nothing calls this directly
no test coverage detected