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

Function check_capture

third-party/lua-5.3.5/src/lstrlib.c:242–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240
241
242static int check_capture (MatchState *ms, int l) {
243 l -= '1';
244 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED)
245 return luaL_error(ms->L, "invalid capture index %%%d", l + 1);
246 return l;
247}
248
249
250static int capture_to_close (MatchState *ms) {

Callers 1

match_captureFunction · 0.70

Calls 1

luaL_errorFunction · 0.70

Tested by

no test coverage detected