MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / check_capture

Function check_capture

lib/lua/src/lstrlib.c:386–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384
385
386static int check_capture (MatchState *ms, int l) {
387 l -= '1';
388 if (l_unlikely(l < 0 || l >= ms->level ||
389 ms->capture[l].len == CAP_UNFINISHED))
390 return luaL_error(ms->L, "invalid capture index %%%d", l + 1);
391 return l;
392}
393
394
395static int capture_to_close (MatchState *ms) {

Callers 1

match_captureFunction · 0.85

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected