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

Function rcapture_l

other_src/lua/src/lpeg.cpp:1720–1727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1718static int capsubst_l (lua_State *L) { return capture_aux(L, Csubst, 0); }
1719
1720static int rcapture_l (lua_State *L) {
1721 switch (lua_type(L, 2)) {
1722 case LUA_TFUNCTION: return capture_aux(L, Cfunction, 2);
1723 case LUA_TTABLE: return capture_aux(L, Cquery, 2);
1724 case LUA_TSTRING: return capture_aux(L, Cstring, 2);
1725 default: return luaL_argerror(L, 2, "invalid replacement value");
1726 }
1727}
1728
1729
1730static int fold_l (lua_State *L) {

Callers

nothing calls this directly

Calls 3

capture_auxFunction · 0.85
lua_typeFunction · 0.70
luaL_argerrorFunction · 0.70

Tested by

no test coverage detected