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

Function codearith

third-party/lua-5.5.0/src/lcode.c:1584–1590  ·  view source on GitHub ↗

** Code arithmetic operators ('+', '-', ...). If second operand is a ** constant in the proper range, use variant opcodes with K operands. */

Source from the content-addressed store, hash-verified

1582** constant in the proper range, use variant opcodes with K operands.
1583*/
1584static void codearith (FuncState *fs, BinOpr opr,
1585 expdesc *e1, expdesc *e2, int flip, int line) {
1586 if (tonumeral(e2, NULL) && luaK_exp2K(fs, e2)) /* K operand? */
1587 codebinK(fs, opr, e1, e2, flip, line);
1588 else /* 'e2' is neither an immediate nor a K operand */
1589 codebinNoK(fs, opr, e1, e2, flip, line);
1590}
1591
1592
1593/*

Callers 2

codecommutativeFunction · 0.70
luaK_posfixFunction · 0.70

Calls 4

tonumeralFunction · 0.70
luaK_exp2KFunction · 0.70
codebinKFunction · 0.70
codebinNoKFunction · 0.70

Tested by

no test coverage detected