MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / check_capture

Function check_capture

Source/Misc/lua/src/lua.c:13863–13868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13861
13862
13863static int check_capture (MatchState *ms, int l) {
13864l -= '1';
13865if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED)
13866return luaL_error(ms->L, "invalid capture index");
13867return l;
13868}
13869
13870
13871static int capture_to_close (MatchState *ms) {

Callers 1

match_captureFunction · 0.85

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected