| 553 | |
| 554 | |
| 555 | static int push_captures (MatchState *ms, const char *s, const char *e) { |
| 556 | int i; |
| 557 | int nlevels = (ms->level == 0 && s) ? 1 : ms->level; |
| 558 | luaL_checkstack(ms->L, nlevels, "too many captures"); |
| 559 | for (i = 0; i < nlevels; i++) |
| 560 | push_onecapture(ms, i, s, e); |
| 561 | return nlevels; /* number of strings pushed */ |
| 562 | } |
| 563 | |
| 564 | |
| 565 | /* check whether pattern has no special characters */ |
no test coverage detected