MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / check_next2

Function check_next2

source/extern/lua/llex.c:199–206  ·  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

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

Callers 1

read_numeralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected