MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / codecomp

Function codecomp

lua/lcode.c:688–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686
687
688static void codecomp (FuncState *fs, OpCode op, int cond, expdesc *e1,
689 expdesc *e2) {
690 int o1 = luaK_exp2RK(fs, e1);
691 int o2 = luaK_exp2RK(fs, e2);
692 freeexp(fs, e2);
693 freeexp(fs, e1);
694 if (cond == 0 && op != OP_EQ) {
695 int temp; /* exchange args to replace by `<' or `<=' */
696 temp = o1; o1 = o2; o2 = temp; /* o1 <==> o2 */
697 cond = 1;
698 }
699 e1->u.s.info = condjump(fs, op, cond, o1, o2);
700 e1->k = VJMP;
701}
702
703
704void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e) {

Callers 1

luaK_posfixFunction · 0.85

Calls 3

luaK_exp2RKFunction · 0.85
freeexpFunction · 0.85
condjumpFunction · 0.85

Tested by

no test coverage detected