MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaK_numberK

Function luaK_numberK

extlibs/lua/src/lcode.c:602–606  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

600** Add a float to list of constants and return its index.
601*/
602static int luaK_numberK (FuncState *fs, lua_Number r) {
603 TValue o;
604 setfltvalue(&o, r);
605 return addk(fs, &o, &o); /* use number itself as key */
606}
607
608
609/*

Callers 2

luaK_floatFunction · 0.85
luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected