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

Function exp2RK

third-party/lua-5.5.0/src/lcode.c:1085–1092  ·  view source on GitHub ↗

** Ensures final expression result is in a valid R/K index ** (that is, it is either in a register or in 'k' with an index ** in the range of R/K indices). ** Returns 1 iff expression is K. */

Source from the content-addressed store, hash-verified

1083** Returns 1 iff expression is K.
1084*/
1085static int exp2RK (FuncState *fs, expdesc *e) {
1086 if (luaK_exp2K(fs, e))
1087 return 1;
1088 else { /* not a constant in the right range: put it in a register */
1089 luaK_exp2anyreg(fs, e);
1090 return 0;
1091 }
1092}
1093
1094
1095static void codeABRK (FuncState *fs, OpCode o, int A, int B,

Callers 3

codeABRKFunction · 0.70
codeeqFunction · 0.70
luaK_infixFunction · 0.70

Calls 2

luaK_exp2KFunction · 0.70
luaK_exp2anyregFunction · 0.70

Tested by

no test coverage detected