MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / setarrayvector

Function setarrayvector

lua/ltable.c:297–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296
297static void setarrayvector (lua_State *L, Table *t, int size) {
298 int i;
299 luaM_reallocvector(L, t->array, t->sizearray, size, TValue);
300 for (i=t->sizearray; i<size; i++)
301 setnilvalue(&t->array[i]);
302 t->sizearray = size;
303}
304
305
306static void setnodevector (lua_State *L, Table *t, int size) {

Callers 2

resizeFunction · 0.85
luaH_newFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected