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

Function check_capture

extlibs/lua/src/lstrlib.c:384–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

match_captureFunction · 0.85

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected