MCPcopy Create free account
hub / github.com/axmolengine/axmol / luaK_intK

Function luaK_intK

3rdparty/lua/plainlua/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.85
luaK_exp2KFunction · 0.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected