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

Function need_value

third-party/lua-5.5.0/src/lcode.c:955–961  ·  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

953** or produce an inverted value
954*/
955static int need_value (FuncState *fs, int list) {
956 for (; list != NO_JUMP; list = getjump(fs, list)) {
957 Instruction i = *getjumpcontrol(fs, list);
958 if (GET_OPCODE(i) != OP_TESTSET) return 1;
959 }
960 return 0; /* not found */
961}
962
963
964/*

Callers 1

exp2regFunction · 0.70

Calls 2

getjumpFunction · 0.70
getjumpcontrolFunction · 0.70

Tested by

no test coverage detected