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

Function nilK

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

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

Source from the content-addressed store, hash-verified

625** Add nil to list of constants and return its index.
626*/
627static int nilK (FuncState *fs) {
628 TValue k, v;
629 setnilvalue(&v);
630 /* cannot use nil as key; instead use table itself to represent nil */
631 sethvalue(fs->ls->L, &k, fs->ls->h);
632 return addk(fs, &k, &v);
633}
634
635
636/*

Callers 1

luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected