| 580 | |
| 581 | |
| 582 | static int push_captures(MatchState *ms, const char *s, const char *e) { |
| 583 | int i; |
| 584 | int nlevels = (ms->level == 0 && s) ? 1 : ms->level; |
| 585 | luaL_checkstack(ms->L, nlevels, "too many captures"); |
| 586 | for (i = 0; i < nlevels; i++) |
| 587 | push_onecapture(ms, i, s, e); |
| 588 | return nlevels; /* number of strings pushed */ |
| 589 | } |
| 590 | |
| 591 | |
| 592 | /* check whether pattern has no special characters */ |
no test coverage detected