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

Function check_capture

third-party/lua-5.5.0/src/lstrlib.c:388–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

match_captureFunction · 0.70

Calls 1

luaL_errorFunction · 0.70

Tested by

no test coverage detected