MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaL_unref

Function luaL_unref

other_src/lua/src/lauxlib.cpp:529–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527
528
529LUALIB_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

Callers 14

~SlashCmdHandlerMethod · 0.50
~LinkMethod · 0.50
~MapHandlerMethod · 0.50
LuaTable.cppFile · 0.50
~LuaTableMethod · 0.50
DeleteMethod · 0.50
ClearRefsMethod · 0.50
MetaGCMethod · 0.50
UnrefMethod · 0.50
SetSceneNodeFuncMethod · 0.50
SetSceneNodeDataMethod · 0.50
CancelMethod · 0.50

Calls 3

lua_rawgetiFunction · 0.70
lua_rawsetiFunction · 0.70
lua_pushintegerFunction · 0.70

Tested by

no test coverage detected