MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / resetstack

Function resetstack

deps/lua/src/ldo.c:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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