MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / nilK

Function nilK

extlibs/lua/src/lcode.c:632–638  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected