MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getfreepos

Function getfreepos

extlibs/lua/src/ltable.c:601–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599
600
601static Node *getfreepos (Table *t) {
602 if (!isdummy(t)) {
603 while (t->lastfree > t->node) {
604 t->lastfree--;
605 if (keyisnil(t->lastfree))
606 return t->lastfree;
607 }
608 }
609 return NULL; /* could not find a free place */
610}
611
612
613

Callers 1

luaH_newkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected