MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaK_prefix

Function luaK_prefix

ThirdParty/lua/lua/lcode.c:840–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838
839
840void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e, int line) {
841 expdesc e2;
842 e2.t = e2.f = NO_JUMP; e2.k = VKINT; e2.u.ival = 0;
843 switch (op) {
844 case OPR_MINUS: case OPR_BNOT: case OPR_LEN: {
845 codeexpval(fs, cast(OpCode, (op - OPR_MINUS) + OP_UNM), e, &e2, line);
846 break;
847 }
848 case OPR_NOT: codenot(fs, e); break;
849 default: lua_assert(0);
850 }
851}
852
853
854void luaK_infix (FuncState *fs, BinOpr op, expdesc *v) {

Callers 1

subexprFunction · 0.85

Calls 2

codeexpvalFunction · 0.85
codenotFunction · 0.85

Tested by

no test coverage detected