MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / nilK

Function nilK

Dependencies/lua/src/lcode.c:645–651  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

643** Add nil to list of constants and return its index.
644*/
645static int nilK (FuncState *fs) {
646 TValue k, v;
647 setnilvalue(&v);
648 /* cannot use nil as key; instead use table itself to represent nil */
649 sethvalue(fs->ls->L, &k, fs->ls->h);
650 return addk(fs, &k, &v);
651}
652
653
654/*

Callers 1

luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected