MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / stringK

Function stringK

src/lcode.cpp:590–594  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

str2KFunction · 0.85
luaK_exp2KFunction · 0.85

Calls 1

k2protoFunction · 0.85

Tested by

no test coverage detected