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

Function exp2RK

third-party/lua-5.4.6/src/lcode.c:1030–1037  ·  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

1028** Returns 1 iff expression is K.
1029*/
1030static int exp2RK (FuncState *fs, expdesc *e) {
1031 if (luaK_exp2K(fs, e))
1032 return 1;
1033 else { /* not a constant in the right range: put it in a register */
1034 luaK_exp2anyreg(fs, e);
1035 return 0;
1036 }
1037}
1038
1039
1040static 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