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

Function optionalheadfail

other_src/lua/src/lpeg.cpp:1635–1643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1633
1634
1635static void optionalheadfail (lua_State *L, int l1, int n) {
1636 Instruction *op = newpatt(L, n * l1);
1637 Instruction *p = op;
1638 int i;
1639 for (i = 0; i < n; i++) {
1640 p += addpatt(L, p, 1);
1641 check2test(p - l1, (n - i)*l1);
1642 }
1643}
1644
1645
1646static void optionals (lua_State *L, int l1, int n) {

Callers 1

star_lFunction · 0.85

Calls 3

newpattFunction · 0.85
addpattFunction · 0.85
check2testFunction · 0.85

Tested by

no test coverage detected