| 483 | |
| 484 | |
| 485 | static int push_captures (MatchState *ms, const char *s, const char *e) { |
| 486 | int i; |
| 487 | int nlevels = (ms->level == 0 && s) ? 1 : ms->level; |
| 488 | luaL_checkstack(ms->L, nlevels, "too many captures"); |
| 489 | for (i = 0; i < nlevels; i++) |
| 490 | push_onecapture(ms, i, s, e); |
| 491 | return nlevels; /* number of strings pushed */ |
| 492 | } |
| 493 | |
| 494 | |
| 495 | static int str_find_aux (lua_State *L, int find) { |
no test coverage detected