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

Function luaK_intK

third-party/lua-5.4.6/src/lcode.c:586–590  ·  view source on GitHub ↗

** Add an integer to list of constants and return its index. */

Source from the content-addressed store, hash-verified

584** Add an integer to list of constants and return its index.
585*/
586static int luaK_intK (FuncState *fs, lua_Integer n) {
587 TValue o;
588 setivalue(&o, n);
589 return addk(fs, &o, &o); /* use integer itself as key */
590}
591
592/*
593** Add a float to list of constants and return its index. Floats

Callers 2

luaK_intFunction · 0.70
luaK_exp2KFunction · 0.70

Calls 1

addkFunction · 0.70

Tested by

no test coverage detected