| 663 | |
| 664 | |
| 665 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { |
| 666 | if (ref >= 0) { |
| 667 | t = lua_absindex(L, t); |
| 668 | lua_rawgeti(L, t, freelist); |
| 669 | lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */ |
| 670 | lua_pushinteger(L, ref); |
| 671 | lua_rawseti(L, t, freelist); /* t[freelist] = ref */ |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | /* }====================================================== */ |
| 676 |
no test coverage detected