| 386 | |
| 387 | |
| 388 | static int check_capture (MatchState *ms, int l) { |
| 389 | l -= '1'; |
| 390 | if (l_unlikely(l < 0 || l >= ms->level || |
| 391 | ms->capture[l].len == CAP_UNFINISHED)) |
| 392 | return luaL_error(ms->L, "invalid capture index %%%d", l + 1); |
| 393 | return l; |
| 394 | } |
| 395 | |
| 396 | |
| 397 | static int capture_to_close (MatchState *ms) { |
no test coverage detected