MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / luaH_set

Function luaH_set

xrepo/packages/l/lua/port/lua/src/ltable.c:822–825  ·  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

820** barrier and invalidate the TM cache.
821*/
822void luaH_set (lua_State *L, Table *t, const TValue *key, TValue *value) {
823 const TValue *slot = luaH_get(t, key);
824 luaH_finishset(L, t, key, slot, value);
825}
826
827
828void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {

Callers 3

reinsertFunction · 0.70
luaH_newkeyFunction · 0.70
aux_rawsetFunction · 0.70

Calls 2

luaH_finishsetFunction · 0.85
luaH_getFunction · 0.70

Tested by

no test coverage detected