MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / getfreepos

Function getfreepos

src/Chain/libraries/glua/ltable.cpp:558–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556
557
558static Node *getfreepos(Table *t) {
559 while (t->lastfree > t->node) {
560 t->lastfree--;
561 if (ttisnil(gkey(t->lastfree)))
562 return t->lastfree;
563 }
564 return nullptr; /* could not find a free place */
565}
566
567
568

Callers 1

luaH_newkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected