MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / stringK

Function stringK

extlibs/lua/src/lcode.c:579–583  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

str2KFunction · 0.85
luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected