MCPcopy Create free account
hub / github.com/DFHack/dfhack / getunopr

Function getunopr

depends/lua/src/lparser.c:987–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985
986
987static UnOpr getunopr (int op) {
988 switch (op) {
989 case TK_NOT: return OPR_NOT;
990 case '-': return OPR_MINUS;
991 case '~': return OPR_BNOT;
992 case '#': return OPR_LEN;
993 default: return OPR_NOUNOPR;
994 }
995}
996
997
998static BinOpr getbinopr (int op) {

Callers 1

subexprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected