MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / check_capture

Function check_capture

src/Chain/libraries/glua/lstrlib.cpp:253–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252
253static int check_capture(MatchState *ms, int l) {
254 l -= '1';
255 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED)
256 return luaL_error(ms->L, "invalid capture index %%%d", l + 1);
257 return l;
258}
259
260
261static int capture_to_close(MatchState *ms) {

Callers 1

match_captureFunction · 0.85

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected