MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getunopr

Function getunopr

extlibs/lua/src/lparser.c:1176–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1174
1175
1176static UnOpr getunopr (int op) {
1177 switch (op) {
1178 case TK_NOT: return OPR_NOT;
1179 case '-': return OPR_MINUS;
1180 case '~': return OPR_BNOT;
1181 case '#': return OPR_LEN;
1182 default: return OPR_NOUNOPR;
1183 }
1184}
1185
1186
1187static BinOpr getbinopr (int op) {

Callers 1

subexprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected