MCPcopy Create free account
hub / github.com/danomatika/ofxLua / luaK_intK

Function luaK_intK

libs/lua/lcode.c:585–589  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

583** Add an integer to list of constants and return its index.
584*/
585static int luaK_intK (FuncState *fs, lua_Integer n) {
586 TValue o;
587 setivalue(&o, n);
588 return addk(fs, &o, &o); /* use integer itself as key */
589}
590
591/*
592** 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