MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaH_getstr

Function luaH_getstr

depends/lua/src/ltable.c:575–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573
574
575const TValue *luaH_getstr (Table *t, TString *key) {
576 if (key->tt == LUA_TSHRSTR)
577 return luaH_getshortstr(t, key);
578 else { /* for long strings, use generic case */
579 TValue ko;
580 setsvalue(cast(lua_State *, NULL), &ko, key);
581 return getgeneric(t, &ko);
582 }
583}
584
585
586/*

Callers

nothing calls this directly

Calls 2

luaH_getshortstrFunction · 0.85
getgenericFunction · 0.85

Tested by

no test coverage detected