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

Function retpsetcode

third-party/lua-5.5.0/src/ltable.c:1049–1054  ·  view source on GitHub ↗

** When a 'pset' cannot be completed, this function returns an encoding ** of its result, to be used by 'luaH_finishset'. */

Source from the content-addressed store, hash-verified

1047** of its result, to be used by 'luaH_finishset'.
1048*/
1049static int retpsetcode (Table *t, const TValue *slot) {
1050 if (isabstkey(slot))
1051 return HNOTFOUND; /* no slot with that key */
1052 else /* return node encoded */
1053 return cast_int((cast(Node*, slot) - t->node)) + HFIRSTNODE;
1054}
1055
1056
1057static int finishnodeset (Table *t, const TValue *slot, TValue *val) {

Callers 2

finishnodesetFunction · 0.85
luaH_psetshortstrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected