MCPcopy Create free account
hub / github.com/danomatika/ofxLua / luaH_getstr

Function luaH_getstr

libs/lua/ltable.c:774–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaX_newstringFunction · 0.85

Calls 2

luaH_getshortstrFunction · 0.85
getgenericFunction · 0.85

Tested by

no test coverage detected