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

Function boolK

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

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

Source from the content-addressed store, hash-verified

496** Add a boolean to list of constants and return its index.
497*/
498static int boolK (FuncState *fs, int b) {
499 TValue o;
500 setbvalue(&o, b);
501 return addk(fs, &o, &o); /* use boolean itself as key */
502}
503
504
505/*

Callers 1

luaK_exp2RKFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected