MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaK_goiffalse

Function luaK_goiffalse

ThirdParty/lua/lua/lcode.c:678–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676
677
678void luaK_goiffalse (FuncState *fs, expdesc *e) {
679 int pc; /* pc of last jump */
680 luaK_dischargevars(fs, e);
681 switch (e->k) {
682 case VJMP: {
683 pc = e->u.info;
684 break;
685 }
686 case VNIL: case VFALSE: {
687 pc = NO_JUMP; /* always false; do nothing */
688 break;
689 }
690 default: {
691 pc = jumponcond(fs, e, 1);
692 break;
693 }
694 }
695 luaK_concat(fs, &e->t, pc); /* insert last jump in 't' list */
696 luaK_patchtohere(fs, e->f);
697 e->f = NO_JUMP;
698}
699
700
701static void codenot (FuncState *fs, expdesc *e) {

Callers 2

test_then_blockFunction · 0.85
luaK_infixFunction · 0.85

Calls 4

luaK_dischargevarsFunction · 0.85
jumponcondFunction · 0.85
luaK_concatFunction · 0.85
luaK_patchtohereFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68