MCPcopy Create free account
hub / github.com/DFHack/dfhack / getfreepos

Function getfreepos

depends/lua/src/ltable.c:441–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439
440
441static Node *getfreepos (Table *t) {
442 if (!isdummy(t)) {
443 while (t->lastfree > t->node) {
444 t->lastfree--;
445 if (ttisnil(gkey(t->lastfree)))
446 return t->lastfree;
447 }
448 }
449 return NULL; /* could not find a free place */
450}
451
452
453

Callers 1

luaH_newkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected