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

Function luaK_int

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

Source from the content-addressed store, hash-verified

652
653
654void luaK_int (FuncState *fs, int reg, lua_Integer i) {
655 if (fitsBx(i))
656 luaK_codeAsBx(fs, OP_LOADI, reg, cast_int(i));
657 else
658 luaK_codek(fs, reg, luaK_intK(fs, i));
659}
660
661
662static void luaK_float (FuncState *fs, int reg, lua_Number f) {

Callers 2

fornumFunction · 0.85
discharge2regFunction · 0.85

Calls 4

fitsBxFunction · 0.85
luaK_codeAsBxFunction · 0.85
luaK_codekFunction · 0.85
luaK_intKFunction · 0.85

Tested by

no test coverage detected