MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / readdecesc

Function readdecesc

extlibs/lua/src/llex.c:366–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364
365
366static int readdecesc (LexState *ls) {
367 int i;
368 int r = 0; /* result accumulator */
369 for (i = 0; i < 3 && lisdigit(ls->current); i++) { /* read up to 3 digits */
370 r = 10*r + ls->current - '0';
371 save_and_next(ls);
372 }
373 esccheck(ls, r <= UCHAR_MAX, "decimal escape too large");
374 luaZ_buffremove(ls->buff, i); /* remove read digits from buffer */
375 return r;
376}
377
378
379static void read_string (LexState *ls, int del, SemInfo *seminfo) {

Callers 1

read_stringFunction · 0.85

Calls 1

esccheckFunction · 0.85

Tested by

no test coverage detected