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

Function luaH_getint

third-party/lua-5.5.0/src/ltable.c:959–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957
958
959lu_byte luaH_getint (Table *t, lua_Integer key, TValue *res) {
960 unsigned k = ikeyinarray(t, key);
961 if (k > 0) {
962 lu_byte tag = *getArrTag(t, k - 1);
963 if (!tagisempty(tag))
964 farr2val(t, k - 1, tag, res);
965 return tag;
966 }
967 else
968 return finishnodeget(getintfromhash(t, key), res);
969}
970
971
972/*

Callers 4

luaT_getvarargsFunction · 0.70
luaH_getFunction · 0.70
loadStringFunction · 0.70
getGlobalTableFunction · 0.70

Calls 2

finishnodegetFunction · 0.85
getintfromhashFunction · 0.85

Tested by

no test coverage detected