MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaK_numberK

Function luaK_numberK

depends/lua/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.85
luaK_exp2RKFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected