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

Function checknext

third-party/lua-5.5.0/src/lparser.c:116–119  ·  view source on GitHub ↗

** Check that next token is 'c' and skip it. */

Source from the content-addressed store, hash-verified

114** Check that next token is 'c' and skip it.
115*/
116static void checknext (LexState *ls, int c) {
117 check(ls, c);
118 luaX_next(ls);
119}
120
121
122#define check_condition(ls,c,msg) { if (!(c)) luaX_syntaxerror(ls, msg); }

Callers 12

yindexFunction · 0.70
recfieldFunction · 0.70
constructorFunction · 0.70
bodyFunction · 0.70
restassignFunction · 0.70
labelstatFunction · 0.70
whilestatFunction · 0.70
forbodyFunction · 0.70
fornumFunction · 0.70
forlistFunction · 0.70
test_then_blockFunction · 0.70
getvarattributeFunction · 0.70

Calls 2

checkFunction · 0.70
luaX_nextFunction · 0.70

Tested by 1

test_then_blockFunction · 0.56