MCPcopy Create free account
hub / github.com/cuberite/cuberite / testnext

Function testnext

lib/lua/src/lparser.c:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80static int testnext (LexState *ls, int c) {
81 if (ls->t.token == c) {
82 luaX_next(ls);
83 return 1;
84 }
85 else return 0;
86}
87
88
89static void check (LexState *ls, int c) {

Callers 10

check_matchFunction · 0.85
constructorFunction · 0.85
parlistFunction · 0.85
explist1Function · 0.85
assignmentFunction · 0.85
fornumFunction · 0.85
forlistFunction · 0.85
localstatFunction · 0.85
statementFunction · 0.85
chunkFunction · 0.85

Calls 1

luaX_nextFunction · 0.85

Tested by

no test coverage detected