MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaH_set

Function luaH_set

third-party/lua-5.2.4/src/ltable.c:510–515  ·  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

508** barrier and invalidate the TM cache.
509*/
510TValue *luaH_set (lua_State *L, Table *t, const TValue *key) {
511 const TValue *p = luaH_get(t, key);
512 if (p != luaO_nilobject)
513 return cast(TValue *, p);
514 else return luaH_newkey(L, t, key);
515}
516
517
518void luaH_setint (lua_State *L, Table *t, int key, TValue *value) {

Callers 6

luaX_newstringFunction · 0.70
luaH_resizeFunction · 0.70
luaH_newkeyFunction · 0.70
lua_rawsetFunction · 0.70
lua_rawsetpFunction · 0.70
addkFunction · 0.70

Calls 2

luaH_getFunction · 0.70
luaH_newkeyFunction · 0.70

Tested by

no test coverage detected