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

Function check_capture

third-party/lua-5.4.6/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.70

Calls 1

luaL_errorFunction · 0.70

Tested by

no test coverage detected