MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / stringK

Function stringK

third-party/lua-5.4.6/src/lcode.c:576–580  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

str2KFunction · 0.70
luaK_exp2KFunction · 0.70

Calls 1

addkFunction · 0.70

Tested by

no test coverage detected