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

Function readdecesc

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

Source from the content-addressed store, hash-verified

389
390
391static int readdecesc (LexState *ls) {
392 int i;
393 int r = 0; /* result accumulator */
394 for (i = 0; i < 3 && lisdigit(ls->current); i++) { /* read up to 3 digits */
395 r = 10*r + ls->current - '0';
396 save_and_next(ls);
397 }
398 esccheck(ls, r <= UCHAR_MAX, "decimal escape too large");
399 luaZ_buffremove(ls->buff, i); /* remove read digits from buffer */
400 return r;
401}
402
403
404static void read_string (LexState *ls, int del, SemInfo *seminfo) {

Callers 1

read_stringFunction · 0.70

Calls 1

esccheckFunction · 0.70

Tested by

no test coverage detected