MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaK_prefix

Function luaK_prefix

src/Chain/libraries/glua/lcode.cpp:841–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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