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

Function luaH_getstr

xrepo/packages/l/lua/port/lua/src/ltable.c:772–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770
771
772const TValue *luaH_getstr (Table *t, TString *key) {
773 if (key->tt == LUA_VSHRSTR)
774 return luaH_getshortstr(t, key);
775 else { /* for long strings, use generic case */
776 TValue ko;
777 setsvalue(cast(lua_State *, NULL), &ko, key);
778 return getgeneric(t, &ko, 0);
779 }
780}
781
782
783/*

Callers 1

luaX_newstringFunction · 0.70

Calls 2

luaH_getshortstrFunction · 0.85
getgenericFunction · 0.85

Tested by

no test coverage detected