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

Function setarrayvector

depends/lua/src/ltable.c:301–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaH_resizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected