MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / resetstack

Function resetstack

lua/ldo.c:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82static void resetstack (lua_State *L, int status) {
83 L->ci = L->base_ci;
84 L->base = L->ci->base;
85 luaF_close(L, L->base); /* close eventual pending closures */
86 luaD_seterrorobj(L, status, L->base);
87 L->nCcalls = L->baseCcalls;
88 L->allowhook = 1;
89 restore_stack_limit(L);
90 L->errfunc = 0;
91 L->errorJmp = NULL;
92}
93
94
95void luaD_throw (lua_State *L, int errcode) {

Callers 1

luaD_throwFunction · 0.85

Calls 3

luaF_closeFunction · 0.85
luaD_seterrorobjFunction · 0.85
restore_stack_limitFunction · 0.85

Tested by

no test coverage detected