MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaH_set

Function luaH_set

3rd/lua-5.4.3/src/ltable.c:813–816  ·  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

811** barrier and invalidate the TM cache.
812*/
813void luaH_set (lua_State *L, Table *t, const TValue *key, TValue *value) {
814 const TValue *slot = luaH_get(t, key);
815 luaH_finishset(L, t, key, slot, value);
816}
817
818
819void 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