MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / check_next2

Function check_next2

3rd/lua-5.4.3/src/llex.c:204–211  ·  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

202** saves it
203*/
204static int check_next2 (LexState *ls, const char *set) {
205 lua_assert(set[2] == '\0');
206 if (ls->current == set[0] || ls->current == set[1]) {
207 save_and_next(ls);
208 return 1;
209 }
210 else return 0;
211}
212
213
214/* LUA_NUMBER */

Callers 1

read_numeralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected