| 736 | |
| 737 | |
| 738 | static int push_captures (MatchState *ms, const char *s, const char *e) { |
| 739 | int i; |
| 740 | int nlevels = (ms->level == 0 && s) ? 1 : ms->level; |
| 741 | luaL_checkstack(ms->L, nlevels, "too many captures"); |
| 742 | for (i = 0; i < nlevels; i++) |
| 743 | push_onecapture(ms, i, s, e); |
| 744 | return nlevels; /* number of strings pushed */ |
| 745 | } |
| 746 | |
| 747 | |
| 748 | /* check whether pattern has no special characters */ |
no test coverage detected