MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / removeentry

Function removeentry

third-party/lua-5.3.5/src/lgc.c:125–129  ·  view source on GitHub ↗

** If key is not marked, mark its entry as dead. This allows key to be ** collected, but keeps its entry in the table. A dead node is needed ** when Lua looks up for a key (it may be part of a chain) and when ** traversing a weak table (key might be removed from the table during ** traversal). Other places never manipulate dead keys, because its ** associated nil value is enough to signal that th

Source from the content-addressed store, hash-verified

123** empty.
124*/
125static void removeentry (Node *n) {
126 lua_assert(ttisnil(gval(n)));
127 if (valiswhite(gkey(n)))
128 setdeadvalue(wgkey(n)); /* unused and unmarked key; remove it */
129}
130
131
132/*

Callers 5

traverseweakvalueFunction · 0.70
traverseephemeronFunction · 0.70
traversestrongtableFunction · 0.70
clearkeysFunction · 0.70
clearvaluesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected