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