| 14160 | |
| 14161 | |
| 14162 | static int push_captures (MatchState *ms, const char *s, const char *e) { |
| 14163 | int i; |
| 14164 | int nlevels = (ms->level == 0 && s) ? 1 : ms->level; |
| 14165 | luaL_checkstack(ms->L, nlevels, "too many captures"); |
| 14166 | for (i = 0; i < nlevels; i++) |
| 14167 | push_onecapture(ms, i, s, e); |
| 14168 | return nlevels; /* number of strings pushed */ |
| 14169 | } |
| 14170 | |
| 14171 | |
| 14172 | static int str_find_aux (lua_State *L, int find) { |
no test coverage detected