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

Function nextcap

other_src/lua/src/lpeg.cpp:1882–1894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1880
1881
1882static Capture *nextcap (Capture *cap) {
1883 if (isfullcap(cap)) return cap + 1;
1884 else {
1885 int n = 0;
1886 for (;;) {
1887 cap++;
1888 if (isclosecap(cap)) {
1889 if (n-- == 0) return cap + 1;
1890 }
1891 else if (!isfullcap(cap)) n++;
1892 }
1893 }
1894}
1895
1896
1897static int pushallvalues (CapState *cs, int addextra) {

Callers 2

getstrcapsFunction · 0.85
pushcaptureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected