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

Function luaK_numberK

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

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

Source from the content-addressed store, hash-verified

486** Add a float to list of constants and return its index.
487*/
488static int luaK_numberK (FuncState *fs, lua_Number r) {
489 TValue o;
490 setfltvalue(&o, r);
491 return addk(fs, &o, &o); /* use number itself as key */
492}
493
494
495/*

Callers 2

discharge2regFunction · 0.85
luaK_exp2RKFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected