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

Function matchtime_l

other_src/lua/src/lpeg.cpp:1770–1780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1768
1769
1770static int matchtime_l (lua_State *L) {
1771 int l1 = getpattl(L, 1);
1772 Instruction *op = newpatt(L, 1 + l1 + 1);
1773 Instruction *p = op;
1774 luaL_checktype(L, 2, LUA_TFUNCTION);
1775 setinstcap(p++, IOpenCapture, value2fenv(L, 2), Cruntime, 0);
1776 p += addpatt(L, p, 1);
1777 setinstcap(p, ICloseRunTime, 0, Cclose, 0);
1778 optimizecaptures(op);
1779 return 1;
1780}
1781
1782
1783static int capconst_l (lua_State *L) {

Callers

nothing calls this directly

Calls 6

getpattlFunction · 0.85
newpattFunction · 0.85
value2fenvFunction · 0.85
addpattFunction · 0.85
optimizecapturesFunction · 0.85
luaL_checktypeFunction · 0.70

Tested by

no test coverage detected