| 10714 | |
| 10715 | |
| 10716 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 10717 | if (ref >= 0) { |
| 10718 | t = abs_index(L, t); |
| 10719 | lua_rawgeti(L, t, FREELIST_REF); |
| 10720 | lua_rawseti(L, t, ref); /* t[ref] = t[FREELIST_REF] */ |
| 10721 | lua_pushinteger(L, ref); |
| 10722 | lua_rawseti(L, t, FREELIST_REF); /* t[FREELIST_REF] = ref */ |
| 10723 | } |
| 10724 | } |
| 10725 | |
| 10726 | |
| 10727 |
no test coverage detected