MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / codebinK

Function codebinK

lib/lua/src/lcode.c:1451–1457  ·  view source on GitHub ↗

** Code binary operators with K operand. */

Source from the content-addressed store, hash-verified

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

Callers 2

codearithFunction · 0.85
codebitwiseFunction · 0.85

Calls 3

binopr2TMFunction · 0.85
binopr2opFunction · 0.85
finishbinexpvalFunction · 0.85

Tested by

no test coverage detected