MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / testnext

Function testnext

third-party/lua-5.5.0/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 15

check_matchFunction · 0.70
constructorFunction · 0.70
parlistFunction · 0.70
explistFunction · 0.70
restassignFunction · 0.70
fornumFunction · 0.70
forlistFunction · 0.70
ifstatFunction · 0.70
getvarattributeFunction · 0.70
localstatFunction · 0.70
globalnamesFunction · 0.70
globalstatFunction · 0.70

Calls 1

luaX_nextFunction · 0.70

Tested by

no test coverage detected