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

Function stringK

third-party/lua-5.5.0/src/lcode.c:589–593  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

587** Add a string to list of constants and return its index.
588*/
589static int stringK (FuncState *fs, TString *s) {
590 TValue o;
591 setsvalue(fs->ls->L, &o, s);
592 return k2proto(fs, &o, &o); /* use string itself as key */
593}
594
595
596/*

Callers 2

str2KFunction · 0.70
luaK_exp2KFunction · 0.70

Calls 1

k2protoFunction · 0.85

Tested by

no test coverage detected