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