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

Function check_next2

third-party/lua-5.5.0/src/llex.c:221–228  ·  view source on GitHub ↗

** Check whether current char is in set 'set' (with two chars) and ** saves it */

Source from the content-addressed store, hash-verified

219** saves it
220*/
221static int check_next2 (LexState *ls, const char *set) {
222 lua_assert(set[2] == '\0');
223 if (ls->current == set[0] || ls->current == set[1]) {
224 save_and_next(ls);
225 return 1;
226 }
227 else return 0;
228}
229
230
231/* LUA_NUMBER */

Callers 1

read_numeralFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected