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

Function luaH_set

extlibs/lua/src/ltable.c:762–767  ·  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

760** barrier and invalidate the TM cache.
761*/
762TValue *luaH_set (lua_State *L, Table *t, const TValue *key) {
763 const TValue *p = luaH_get(t, key);
764 if (!isabstkey(p))
765 return cast(TValue *, p);
766 else return luaH_newkey(L, t, key);
767}
768
769
770void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {

Callers 5

luaX_newstringFunction · 0.85
reinsertFunction · 0.85
luaH_newkeyFunction · 0.85
aux_rawsetFunction · 0.85
addkFunction · 0.85

Calls 2

luaH_getFunction · 0.85
luaH_newkeyFunction · 0.85

Tested by

no test coverage detected