MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / nilK

Function nilK

Plugins/slua_unreal/External/lua/lcode.cpp:499–505  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

497** Add nil to list of constants and return its index.
498*/
499static int nilK (FuncState *fs) {
500 TValue k, v;
501 setnilvalue(&v);
502 /* cannot use nil as key; instead use table itself to represent nil */
503 sethvalue(fs->ls->L, &k, fs->ls->h);
504 return addk(fs, &k, &v);
505}
506
507
508/*

Callers 1

luaK_exp2RKFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected