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

Function luaH_setint

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

Source from the content-addressed store, hash-verified

623
624
625void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {
626 const TValue *p = luaH_getint(t, key);
627 TValue *cell;
628 if (p != luaO_nilobject)
629 cell = cast(TValue *, p);
630 else {
631 TValue k;
632 setivalue(&k, key);
633 cell = luaH_newkey(L, t, &k);
634 }
635 setobj2t(L, cell, value);
636}
637
638
639static lua_Unsigned unbound_search (Table *t, lua_Unsigned j) {

Callers 5

luaV_executeFunction · 0.85
init_registryFunction · 0.85
luaH_resizeFunction · 0.85
collectvalidlinesFunction · 0.85
lua_rawsetiFunction · 0.85

Calls 2

luaH_getintFunction · 0.85
luaH_newkeyFunction · 0.85

Tested by

no test coverage detected