MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / nilK

Function nilK

third-party/lua-5.4.6/src/lcode.c:646–652  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

luaK_exp2KFunction · 0.70

Calls 1

addkFunction · 0.70

Tested by

no test coverage detected