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

Function codebinK

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

** Code binary operators with K operand. */

Source from the content-addressed store, hash-verified

1450** Code binary operators with K operand.
1451*/
1452static void codebinK (FuncState *fs, BinOpr opr,
1453 expdesc *e1, expdesc *e2, int flip, int line) {
1454 TMS event = binopr2TM(opr);
1455 int v2 = e2->u.info; /* K index */
1456 OpCode op = binopr2op(opr, OPR_ADD, OP_ADDK);
1457 finishbinexpval(fs, e1, e2, op, v2, flip, line, OP_MMBINK, event);
1458}
1459
1460
1461/* Try to code a binary operator negating its second operand.

Callers 2

codearithFunction · 0.70
codebitwiseFunction · 0.70

Calls 3

binopr2TMFunction · 0.70
binopr2opFunction · 0.70
finishbinexpvalFunction · 0.70

Tested by

no test coverage detected