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

Function functioncap

other_src/lua/src/lpeg.cpp:2019–2026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2017
2018
2019static int functioncap (CapState *cs) {
2020 int n;
2021 int top = lua_gettop(cs->L);
2022 pushluaval(cs);
2023 n = pushallvalues(cs, 0);
2024 lua_call(cs->L, n, LUA_MULTRET);
2025 return lua_gettop(cs->L) - top;
2026}
2027
2028
2029static int runtimecap (lua_State *L, Capture *close, Capture *ocap,

Callers 1

pushcaptureFunction · 0.85

Calls 3

pushallvaluesFunction · 0.85
lua_gettopFunction · 0.70
lua_callFunction · 0.70

Tested by

no test coverage detected