MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / stringK

Function stringK

3rd/lua-5.4.3/src/lcode.c:574–578  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

str2KFunction · 0.85
luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected