MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / setarrayvector

Function setarrayvector

libraries/AP_Scripting/lua/src/ltable.c:308–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307
308static void setarrayvector (lua_State *L, Table *t, unsigned int size) {
309 unsigned int i;
310 luaM_reallocvector(L, t->array, t->sizearray, size, TValue);
311 for (i=t->sizearray; i<size; i++)
312 setnilvalue(&t->array[i]);
313 t->sizearray = size;
314}
315
316
317static 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