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

Function getbinopr

ThirdParty/lua/lua/lparser.c:991–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989
990
991static BinOpr getbinopr (int op) {
992 switch (op) {
993 case '+': return OPR_ADD;
994 case '-': return OPR_SUB;
995 case '*': return OPR_MUL;
996 case '%': return OPR_MOD;
997 case '^': return OPR_POW;
998 case '/': return OPR_DIV;
999 case TK_IDIV: return OPR_IDIV;
1000 case '&': return OPR_BAND;
1001 case '|': return OPR_BOR;
1002 case '~': return OPR_BXOR;
1003 case TK_SHL: return OPR_SHL;
1004 case TK_SHR: return OPR_SHR;
1005 case TK_CONCAT: return OPR_CONCAT;
1006 case TK_NE: return OPR_NE;
1007 case TK_EQ: return OPR_EQ;
1008 case '<': return OPR_LT;
1009 case TK_LE: return OPR_LE;
1010 case '>': return OPR_GT;
1011 case TK_GE: return OPR_GE;
1012 case TK_AND: return OPR_AND;
1013 case TK_OR: return OPR_OR;
1014 default: return OPR_NOBINOPR;
1015 }
1016}
1017
1018
1019static const struct {

Callers 1

subexprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected