MCPcopy Create free account
hub / github.com/Tencent/xLua / setarrayvector

Function setarrayvector

WebGLPlugins/ltable.c:299–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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