MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaH_getstr

Function luaH_getstr

libraries/AP_Scripting/lua/src/ltable.c:582–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580
581
582const TValue *luaH_getstr (Table *t, TString *key) {
583 if (key->tt == LUA_TSHRSTR)
584 return luaH_getshortstr(t, key);
585 else { /* for long strings, use generic case */
586 TValue ko;
587 setsvalue(cast(lua_State *, NULL), &ko, key);
588 return getgeneric(t, &ko);
589 }
590}
591
592
593/*

Callers

nothing calls this directly

Calls 2

luaH_getshortstrFunction · 0.85
getgenericFunction · 0.85

Tested by

no test coverage detected