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

Function need_value

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

** check whether list has any jump that do not produce a value ** or produce an inverted value */

Source from the content-addressed store, hash-verified

898** or produce an inverted value
899*/
900static int need_value (FuncState *fs, int list) {
901 for (; list != NO_JUMP; list = getjump(fs, list)) {
902 Instruction i = *getjumpcontrol(fs, list);
903 if (GET_OPCODE(i) != OP_TESTSET) return 1;
904 }
905 return 0; /* not found */
906}
907
908
909/*

Callers 1

exp2regFunction · 0.70

Calls 2

getjumpFunction · 0.70
getjumpcontrolFunction · 0.70

Tested by

no test coverage detected