MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaK_numberK

Function luaK_numberK

3rd/lua-5.4.3/src/lcode.c:597–601  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

luaK_floatFunction · 0.85
luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected