MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaH_getstr

Function luaH_getstr

src/Chain/libraries/glua/ltable.cpp:690–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688
689
690const TValue *luaH_getstr(Table *t, TString *key) {
691 if (key->tt == LUA_TSHRSTR)
692 return luaH_getshortstr(t, key);
693 else { /* for long strings, use generic case */
694 TValue ko;
695 setsvalue(lua_cast(lua_State *, nullptr), &ko, key);
696 return getgeneric(t, &ko);
697 }
698}
699
700
701/*

Callers

nothing calls this directly

Calls 2

luaH_getshortstrFunction · 0.85
getgenericFunction · 0.85

Tested by

no test coverage detected