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

Function luaK_infix

third-party/lua-5.2.4/src/lcode.c:786–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784
785
786void luaK_infix (FuncState *fs, BinOpr op, expdesc *v) {
787 switch (op) {
788 case OPR_AND: {
789 luaK_goiftrue(fs, v);
790 break;
791 }
792 case OPR_OR: {
793 luaK_goiffalse(fs, v);
794 break;
795 }
796 case OPR_CONCAT: {
797 luaK_exp2nextreg(fs, v); /* operand must be on the `stack' */
798 break;
799 }
800 case OPR_ADD: case OPR_SUB: case OPR_MUL: case OPR_DIV:
801 case OPR_MOD: case OPR_POW: {
802 if (!isnumeral(v)) luaK_exp2RK(fs, v);
803 break;
804 }
805 default: {
806 luaK_exp2RK(fs, v);
807 break;
808 }
809 }
810}
811
812
813void luaK_posfix (FuncState *fs, BinOpr op,

Callers 1

subexprFunction · 0.70

Calls 5

luaK_goiftrueFunction · 0.70
luaK_goiffalseFunction · 0.70
luaK_exp2nextregFunction · 0.70
isnumeralFunction · 0.70
luaK_exp2RKFunction · 0.70

Tested by

no test coverage detected