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

Function check_capture

third-party/lua-5.2.4/src/lstrlib.c:226–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225
226static int check_capture (MatchState *ms, int l) {
227 l -= '1';
228 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED)
229 return luaL_error(ms->L, "invalid capture index %%%d", l + 1);
230 return l;
231}
232
233
234static int capture_to_close (MatchState *ms) {

Callers 1

match_captureFunction · 0.70

Calls 1

luaL_errorFunction · 0.70

Tested by

no test coverage detected