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

Function testnext

extlibs/lua/src/lparser.c:95–101  ·  view source on GitHub ↗

** Test whether next token is 'c'; if so, skip it. */

Source from the content-addressed store, hash-verified

93** Test whether next token is 'c'; if so, skip it.
94*/
95static int testnext (LexState *ls, int c) {
96 if (ls->t.token == c) {
97 luaX_next(ls);
98 return 1;
99 }
100 else return 0;
101}
102
103
104/*

Callers 14

check_matchFunction · 0.85
constructorFunction · 0.85
parlistFunction · 0.85
explistFunction · 0.85
restassignFunction · 0.85
fornumFunction · 0.85
forlistFunction · 0.85
issinglejumpFunction · 0.85
test_then_blockFunction · 0.85
ifstatFunction · 0.85
getlocalattributeFunction · 0.85
localstatFunction · 0.85

Calls 1

luaX_nextFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68