MCPcopy Create free account
hub / github.com/axmolengine/axmol / binopr2op

Function binopr2op

3rdparty/lua/plainlua/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.85
codebinKFunction · 0.85
codeorderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected