MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaK_numberK

Function luaK_numberK

third-party/lua-5.3.5/src/lcode.c:481–485  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

479** Add a float to list of constants and return its index.
480*/
481static int luaK_numberK (FuncState *fs, lua_Number r) {
482 TValue o;
483 setfltvalue(&o, r);
484 return addk(fs, &o, &o); /* use number itself as key */
485}
486
487
488/*

Callers 2

discharge2regFunction · 0.70
luaK_exp2RKFunction · 0.70

Calls 1

addkFunction · 0.70

Tested by

no test coverage detected