MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / push_captures

Function push_captures

other_src/lua/src/lstrlib.cpp:485–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483
484
485static 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
495static int str_find_aux (lua_State *L, int find) {

Callers 3

str_find_auxFunction · 0.70
gmatch_auxFunction · 0.70
add_valueFunction · 0.70

Calls 2

luaL_checkstackFunction · 0.70
push_onecaptureFunction · 0.70

Tested by

no test coverage detected