** Push the i-th capture on the stack. */
| 720 | ** Push the i-th capture on the stack. |
| 721 | */ |
| 722 | static void push_onecapture (MatchState *ms, int i, const char *s, |
| 723 | const char *e) { |
| 724 | const char *cap; |
| 725 | ptrdiff_t l = get_onecapture(ms, i, s, e, &cap); |
| 726 | if (l != CAP_POSITION) |
| 727 | lua_pushlstring(ms->L, cap, l); |
| 728 | /* else position was already pushed */ |
| 729 | } |
| 730 | |
| 731 | |
| 732 | static int push_captures (MatchState *ms, const char *s, const char *e) { |
no test coverage detected