MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / nilK

Function nilK

libraries/AP_Scripting/lua/src/lcode.c:508–514  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

506** Add nil to list of constants and return its index.
507*/
508static int nilK (FuncState *fs) {
509 TValue k, v;
510 setnilvalue(&v);
511 /* cannot use nil as key; instead use table itself to represent nil */
512 sethvalue(fs->ls->L, &k, fs->ls->h);
513 return addk(fs, &k, &v);
514}
515
516
517/*

Callers 1

luaK_exp2RKFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected