MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getbinopr

Function getbinopr

Source/Misc/lua/src/lua.c:8364–8383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8362
8363
8364static BinOpr getbinopr (int op) {
8365switch (op) {
8366case '+': return OPR_ADD;
8367case '-': return OPR_SUB;
8368case '*': return OPR_MUL;
8369case '/': return OPR_DIV;
8370case '%': return OPR_MOD;
8371case '^': return OPR_POW;
8372case TK_CONCAT: return OPR_CONCAT;
8373case TK_NE: return OPR_NE;
8374case TK_EQ: return OPR_EQ;
8375case '<': return OPR_LT;
8376case TK_LE: return OPR_LE;
8377case '>': return OPR_GT;
8378case TK_GE: return OPR_GE;
8379case TK_AND: return OPR_AND;
8380case TK_OR: return OPR_OR;
8381default: return OPR_NOBINOPR;
8382}
8383}
8384
8385
8386static const struct {

Callers 1

subexprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected