MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / unopr2op

Function unopr2op

lib/lua/src/lcode.c:1371–1374  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1369** Convert a UnOpr to an OpCode (ORDER OPR - ORDER OP)
1370*/
1371l_sinline OpCode unopr2op (UnOpr opr) {
1372 return cast(OpCode, (cast_int(opr) - cast_int(OPR_MINUS)) +
1373 cast_int(OP_UNM));
1374}
1375
1376
1377/*

Callers 1

luaK_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected