MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / push_captures

Function push_captures

Source/Misc/lua/src/lua.c:14162–14169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

str_find_auxFunction · 0.85
gmatch_auxFunction · 0.85
add_valueFunction · 0.85

Calls 2

luaL_checkstackFunction · 0.85
push_onecaptureFunction · 0.85

Tested by

no test coverage detected