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

Function luaK_stringK

libraries/AP_Scripting/lua/src/lcode.c:465–469  ·  view source on GitHub ↗

** Add a string to list of constants and return its index. */

Source from the content-addressed store, hash-verified

463** Add a string to list of constants and return its index.
464*/
465int luaK_stringK (FuncState *fs, TString *s) {
466 TValue o;
467 setsvalue(fs->ls->L, &o, s);
468 return addk(fs, &o, &o); /* use string itself as key */
469}
470
471
472/*

Callers 1

codestringFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected