MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / getfreepos

Function getfreepos

3rd/lua-5.4.3/src/ltable.c:634–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632
633
634static Node *getfreepos (Table *t) {
635 if (!isdummy(t)) {
636 while (t->lastfree > t->node) {
637 t->lastfree--;
638 if (keyisnil(t->lastfree))
639 return t->lastfree;
640 }
641 }
642 return NULL; /* could not find a free place */
643}
644
645
646

Callers 1

luaH_newkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected