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

Function luaH_set

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

** beware: when using this function you probably need to check a GC ** barrier and invalidate the TM cache. */

Source from the content-addressed store, hash-verified

615** barrier and invalidate the TM cache.
616*/
617TValue *luaH_set (lua_State *L, Table *t, const TValue *key) {
618 const TValue *p = luaH_get(t, key);
619 if (p != luaO_nilobject)
620 return cast(TValue *, p);
621 else return luaH_newkey(L, t, key);
622}
623
624
625void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {

Callers 6

luaX_newstringFunction · 0.85
luaH_resizeFunction · 0.85
luaH_newkeyFunction · 0.85
lua_rawsetFunction · 0.85
lua_rawsetpFunction · 0.85
addkFunction · 0.85

Calls 2

luaH_getFunction · 0.85
luaH_newkeyFunction · 0.85

Tested by

no test coverage detected