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

Function nilK

src/lcode.cpp:666–672  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

664** Add nil to list of constants and return its index.
665*/
666static int nilK (FuncState *fs) {
667 TValue k, v;
668 setnilvalue(&v);
669 /* cannot use nil as key; instead use table itself */
670 sethvalue(fs->ls->L, &k, fs->kcache);
671 return k2proto(fs, &k, &v);
672}
673
674
675/*

Callers 1

luaK_exp2KFunction · 0.85

Calls 1

k2protoFunction · 0.85

Tested by

no test coverage detected