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

Function binopr2op

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

** Convert a BinOpr to an OpCode (ORDER OPR - ORDER OP) */

Source from the content-addressed store, hash-verified

1359** Convert a BinOpr to an OpCode (ORDER OPR - ORDER OP)
1360*/
1361l_sinline OpCode binopr2op (BinOpr opr, BinOpr baser, OpCode base) {
1362 lua_assert(baser <= opr &&
1363 ((baser == OPR_ADD && opr <= OPR_SHR) ||
1364 (baser == OPR_LT && opr <= OPR_LE)));
1365 return cast(OpCode, (cast_int(opr) - cast_int(baser)) + cast_int(base));
1366}
1367
1368
1369/*

Callers 3

codebinexpvalFunction · 0.70
codebinKFunction · 0.70
codeorderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected