MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / stringK

Function stringK

lib/lua/src/lcode.c:575–579  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

573** Add a string to list of constants and return its index.
574*/
575static int stringK (FuncState *fs, TString *s) {
576 TValue o;
577 setsvalue(fs->ls->L, &o, s);
578 return addk(fs, &o, &o); /* use string itself as key */
579}
580
581
582/*

Callers 2

str2KFunction · 0.85
luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected