MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaH_set

Function luaH_set

lib/lua/src/ltable.c:839–842  ·  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

837** barrier and invalidate the TM cache.
838*/
839void luaH_set (lua_State *L, Table *t, const TValue *key, TValue *value) {
840 const TValue *slot = luaH_get(t, key);
841 luaH_finishset(L, t, key, slot, value);
842}
843
844
845void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {

Callers 3

reinsertFunction · 0.85
luaH_newkeyFunction · 0.85
aux_rawsetFunction · 0.85

Calls 2

luaH_getFunction · 0.85
luaH_finishsetFunction · 0.85

Tested by

no test coverage detected