MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / resetstack

Function resetstack

Source/Misc/lua/src/lua.c:5227–5237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5225
5226
5227static void resetstack (lua_State *L, int status) {
5228L->ci = L->base_ci;
5229L->base = L->ci->base;
5230luaF_close(L, L->base); /* close eventual pending closures */
5231luaD_seterrorobj(L, status, L->base);
5232L->nCcalls = L->baseCcalls;
5233L->allowhook = 1;
5234restore_stack_limit(L);
5235L->errfunc = 0;
5236L->errorJmp = NULL;
5237}
5238
5239
5240void 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