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

Function getunopr

src/Chain/libraries/glua/lparser.cpp:1019–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017
1018
1019static UnOpr getunopr(int op) {
1020 switch (op) {
1021 case TK_NOT: return OPR_NOT;
1022 case '-': return OPR_MINUS;
1023 case '~': return OPR_BNOT;
1024 case '#': return OPR_LEN;
1025 default: return OPR_NOUNOPR;
1026 }
1027}
1028
1029
1030static BinOpr getbinopr(int op) {

Callers 1

subexprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected