MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaK_stringK

Function luaK_stringK

depends/lua/src/lcode.c:458–462  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

456** Add a string to list of constants and return its index.
457*/
458int luaK_stringK (FuncState *fs, TString *s) {
459 TValue o;
460 setsvalue(fs->ls->L, &o, s);
461 return addk(fs, &o, &o); /* use string itself as key */
462}
463
464
465/*

Callers 1

codestringFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected